test/jaxp/javax/xml/jaxp/unittest/validation/files/JDK8220818a.xsd
changeset 54672 a43d6467317d
equal deleted inserted replaced
54671:41339a468716 54672:a43d6467317d
       
     1 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
       
     2     <xs:element name="root">
       
     3         <xs:complexType>
       
     4             <xs:sequence>
       
     5                 <xs:element name="key" type="xs:string" minOccurs="0">
       
     6                     <xs:key name="key">
       
     7                         <xs:selector xpath="."/>
       
     8                         <xs:field xpath="."/>
       
     9                     </xs:key>
       
    10                 </xs:element>
       
    11                 <xs:element name="keyref">
       
    12                     <xs:complexType>
       
    13                         <xs:attribute name="att" type="xs:string"/>
       
    14                     </xs:complexType>
       
    15                 </xs:element>
       
    16             </xs:sequence>
       
    17         </xs:complexType>
       
    18         <xs:keyref name="keyref" refer="key">
       
    19             <xs:selector xpath="keyref"/>
       
    20             <xs:field xpath="@att"/>
       
    21         </xs:keyref>
       
    22     </xs:element>
       
    23 </xs:schema>