XML Schema Attribute
Having trouble installing Oxygen? Got a bug to report? Post it all here.
XML Schema Attribute
Post by xs »
Hi:
I have an XMl as below:
<SONG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="24-10.xsd">
<TITLE>Hot Cop</TITLE>
<PUBLISHER id="v4">PolyGram Records</PUBLISHER>
<COMPOSER>
<NAME>Jacques Morali</NAME>
</COMPOSER>
<PRODUCER>
<NAME>Jacques Morali</NAME>
</PRODUCER>
<LENGTH>6:20</LENGTH>
<YEAR>1978</YEAR>
<ARTIST>Village People</ARTIST>
</SONG>
I don't kown how to assign the XML schema to the Publisher node.
Thanks for help!
I have an XMl as below:
<SONG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="24-10.xsd">
<TITLE>Hot Cop</TITLE>
<PUBLISHER id="v4">PolyGram Records</PUBLISHER>
<COMPOSER>
<NAME>Jacques Morali</NAME>
</COMPOSER>
<PRODUCER>
<NAME>Jacques Morali</NAME>
</PRODUCER>
<LENGTH>6:20</LENGTH>
<YEAR>1978</YEAR>
<ARTIST>Village People</ARTIST>
</SONG>
I don't kown how to assign the XML schema to the Publisher node.
Thanks for help!
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi,
Oxygen uses Xerces and it follows a one schema per namespace rule. Both your SONG and PUBLISHER elements are from no namespace so you should set only one schema. If you have two or more schema files you can just create a master schema and include all your schemas there then set this file similar with how you already specified the 24-10.xsd schema.
Hope that helps,
George
Oxygen uses Xerces and it follows a one schema per namespace rule. Both your SONG and PUBLISHER elements are from no namespace so you should set only one schema. If you have two or more schema files you can just create a master schema and include all your schemas there then set this file similar with how you already specified the 24-10.xsd schema.
Hope that helps,
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service