test/jaxp/javax/xml/jaxp/unittest/validation/files/JDK8220818a.xsd
author phh
Sat, 30 Nov 2019 14:33:05 -0800
changeset 59330 5b96c12f909d
parent 54672 a43d6467317d
permissions -rw-r--r--
8234541: C1 emits an empty message when it inlines successfully Summary: Use "inline" as the message when successfull Reviewed-by: thartmann, mdoerr Contributed-by: navy.xliu@gmail.com

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="root">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="key" type="xs:string" minOccurs="0">
                    <xs:key name="key">
                        <xs:selector xpath="."/>
                        <xs:field xpath="."/>
                    </xs:key>
                </xs:element>
                <xs:element name="keyref">
                    <xs:complexType>
                        <xs:attribute name="att" type="xs:string"/>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
        <xs:keyref name="keyref" refer="key">
            <xs:selector xpath="keyref"/>
            <xs:field xpath="@att"/>
        </xs:keyref>
    </xs:element>
</xs:schema>