Regarding xsd:sequence
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 1
- Joined: Thu Aug 11, 2005 7:08 pm
Regarding xsd:sequence
Post by shishir123 »
Hi I have schema something like this
<xs:complexType name="nationType">
<xs:sequence>
<xs:element name="nationName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="USA"/>
<xs:enumeration value="China"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="population" type="xs:int"/>
<xs:element name="languages" type="languageType"/>
<xs:element name="religions" type="religionType" minOccurs="0"/>
<xs:element name="gdp" type="xs:decimal"/>
</xs:sequence>
</xs:complexType>
Here I do not want to keep the restriction of sequence. How can I overcome that?
Thanks,
Shishir
<xs:complexType name="nationType">
<xs:sequence>
<xs:element name="nationName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="USA"/>
<xs:enumeration value="China"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="population" type="xs:int"/>
<xs:element name="languages" type="languageType"/>
<xs:element name="religions" type="religionType" minOccurs="0"/>
<xs:element name="gdp" type="xs:decimal"/>
</xs:sequence>
</xs:complexType>
Here I do not want to keep the restriction of sequence. How can I overcome that?
Thanks,
Shishir
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