poi/xmlbeans/test/cases/xbean/misc/jira/xmlbeans_228.xsd
2018-02-16 22:41:27 +00:00

34 lines
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:sub="http://jira/xmlbeans_228/substitution"
targetNamespace="http://jira/xmlbeans_228/substitution"
elementFormDefault="qualified">
<xs:annotation>
<xs:documentation>
<xs:documentation>Wrong element order after substitution.</xs:documentation>
<creationdate>14.11.05 11:11</creationdate>
</xs:documentation>
</xs:annotation>
<xs:element name="Person">
<xs:complexType>
<xs:sequence>
<xs:element name="FirstName" type="xs:string"/>
<xs:element name="LastName" type="xs:string"/>
<xs:element ref="sub:Comment" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Comment" type="sub:CommentType"/>
<xs:complexType name="CommentType">
<xs:simpleContent>
<xs:extension base="xs:string"/>
</xs:simpleContent>
</xs:complexType>
<xs:element name="FirstCommentElement" type="sub:FirstCommentType" substitutionGroup="sub:Comment"/>
<xs:complexType name="FirstCommentType">
<xs:simpleContent>
<xs:extension base="sub:CommentType"/>
</xs:simpleContent>
</xs:complexType>
</xs:schema>