Tests all AttTypes : StringType, TokenizedTypes, EnumeratedTypes in P55,P56,P57,P58,P59. Also tests all DefaultDecls in P60.
<?xml version="1.0"?> <!DOCTYPE root [ <!ELEMENT root ANY> <!ELEMENT a (#PCDATA) > <!ELEMENT b (#PCDATA) > <!ELEMENT c (#PCDATA) > <!ELEMENT d (#PCDATA) > <!ELEMENT e (#PCDATA) > <!ELEMENT f (#PCDATA) > <!ELEMENT g (#PCDATA) > <!ELEMENT h (#PCDATA) > <!ELEMENT i (#PCDATA) > <!ELEMENT j (#PCDATA) > <!ELEMENT k (#PCDATA) > <!--* Tests all Attbuite types in P55,P56,P57,P58,P59 *--> <!ATTLIST a aattr1 ID #REQUIRED> <!ATTLIST b battr1 CDATA #REQUIRED battr2 (good|bad) #REQUIRED battr3 ID #REQUIRED> <!ATTLIST c c_reference IDREF #REQUIRED> <!ATTLIST d d_reference IDREFS #REQUIRED> <!ENTITY xmltech SYSTEM "xmltech.gif" NDATA gif> <!NOTATION gif SYSTEM "gif"> <!ATTLIST e eattr1 ENTITY #REQUIRED> <!ENTITY IBMlogo SYSTEM "IBMlogo.gif" NDATA gif> <!ATTLIST f fattr1 ENTITIES #REQUIRED> <!ATTLIST g gattr1 NMTOKEN #REQUIRED> <!ATTLIST h hattr1 NMTOKENS #REQUIRED> <!NOTATION UTF-8 SYSTEM "UTF-8"> <!ATTLIST i iattr1 NOTATION (UTF-8) #REQUIRED> <!--* Tests all DefaultDecl in P60 --> <!ATTLIST j jattr1 CDATA #REQUIRED jattr2 CDATA "good" jattr3 CDATA #FIXED "fixed" jattr4 CDATA #IMPLIED > ]> <root> <a aattr1 = "a1"> Element type a </a> <b battr1 = "anyvalue" battr2="good" battr3 ="b1"> Element type b </b> <c c_reference = "b1"> Element type c </c> <d d_reference = "a1 b1"> Element type d </d> <e eattr1 = "xmltech"> Element type e </e> <f fattr1 = "xmltech IBMlogo"> Element type f </f> <g gattr1 = "xml4j3_0_0_EA3"> Element type g </g> <h hattr1 = "xml4j3_0_0_EA3 Xerces-J_1_0_1"> Element type h </h> <i iattr1 = "UTF-8"> Element type i </i> <j jattr1 = "anyvalue" jattr2="good" jattr3 ="fixed"> Element type j </j> </root> <!--* a valid test: tests P54 *-->
Expected result | Actual result for org.apache.crimson.parser.XMLReaderImpl |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <notation> <name>UTF-8</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P54/UTF-8</systemID> </notation> <notation> <name>gif</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P54/gif</systemID> </notation> <unparsedEntity> <name>IBMlogo</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P54/IBMlogo.gif</systemID> <notation>gif</notation> </unparsedEntity> <unparsedEntity> <name>xmltech</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P54/xmltech.gif</systemID> <notation>gif</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>aattr1</localName> <qualifiedName>aattr1</qualifiedName> <value>a1</value> <type>ID</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>a</char> <char>\s</char> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>battr1</localName> <qualifiedName>battr1</qualifiedName> <value>anyvalue</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>battr2</localName> <qualifiedName>battr2</qualifiedName> <value>good</value> <type>NMTOKEN</type> </attribute> <attribute> <namespaceURI/> <localName>battr3</localName> <qualifiedName>battr3</qualifiedName> <value>b1</value> <type>ID</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>b</char> <char>\s</char> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>c_reference</localName> <qualifiedName>c_reference</qualifiedName> <value>b1</value> <type>IDREF</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>c</char> <char>\s</char> <endElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>d</localName> <qualifiedName>d</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>d_reference</localName> <qualifiedName>d_reference</qualifiedName> <value>a1\sb1</value> <type>IDREFS</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>d</char> <char>\s</char> <endElement> <namespaceURI/> <localName>d</localName> <qualifiedName>d</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>e</localName> <qualifiedName>e</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>eattr1</localName> <qualifiedName>eattr1</qualifiedName> <value>xmltech</value> <type>ENTITY</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>e</char> <char>\s</char> <endElement> <namespaceURI/> <localName>e</localName> <qualifiedName>e</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>f</localName> <qualifiedName>f</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>fattr1</localName> <qualifiedName>fattr1</qualifiedName> <value>xmltech\sIBMlogo</value> <type>ENTITIES</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>f</char> <char>\s</char> <endElement> <namespaceURI/> <localName>f</localName> <qualifiedName>f</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>g</localName> <qualifiedName>g</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>gattr1</localName> <qualifiedName>gattr1</qualifiedName> <value>xml4j3_0_0_EA3</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>g</char> <char>\s</char> <endElement> <namespaceURI/> <localName>g</localName> <qualifiedName>g</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>h</localName> <qualifiedName>h</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>hattr1</localName> <qualifiedName>hattr1</qualifiedName> <value>xml4j3_0_0_EA3\sXerces-J_1_0_1</value> <type>NMTOKENS</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>h</char> <char>\s</char> <endElement> <namespaceURI/> <localName>h</localName> <qualifiedName>h</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>i</localName> <qualifiedName>i</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>iattr1</localName> <qualifiedName>iattr1</qualifiedName> <value>UTF-8</value> <type>NOTATION</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>i</char> <char>\s</char> <endElement> <namespaceURI/> <localName>i</localName> <qualifiedName>i</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>j</localName> <qualifiedName>j</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>jattr1</localName> <qualifiedName>jattr1</qualifiedName> <value>anyvalue</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>jattr2</localName> <qualifiedName>jattr2</qualifiedName> <value>good</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>jattr3</localName> <qualifiedName>jattr3</qualifiedName> <value>fixed</value> <type>CDATA</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>j</char> <char>\s</char> <endElement> <namespaceURI/> <localName>j</localName> <qualifiedName>j</qualifiedName> </endElement> <char>\n</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <notation> <name>UTF-8</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P54/UTF-8</systemID> </notation> <notation> <name>gif</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P54/gif</systemID> </notation> <unparsedEntity> <name>IBMlogo</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P54/IBMlogo.gif</systemID> <notation>gif</notation> </unparsedEntity> <unparsedEntity> <name>xmltech</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P54/xmltech.gif</systemID> <notation>gif</notation> </unparsedEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>aattr1</localName> <qualifiedName>aattr1</qualifiedName> <value>a1</value> <type>ID</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>a</char> <char>\s</char> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>battr1</localName> <qualifiedName>battr1</qualifiedName> <value>anyvalue</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>battr2</localName> <qualifiedName>battr2</qualifiedName> <value>good</value> <type>ENUMERATION</type> </attribute> <attribute> <namespaceURI/> <localName>battr3</localName> <qualifiedName>battr3</qualifiedName> <value>b1</value> <type>ID</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>b</char> <char>\s</char> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>c_reference</localName> <qualifiedName>c_reference</qualifiedName> <value>b1</value> <type>IDREF</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>c</char> <char>\s</char> <endElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>d</localName> <qualifiedName>d</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>d_reference</localName> <qualifiedName>d_reference</qualifiedName> <value>a1\sb1</value> <type>IDREFS</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>d</char> <char>\s</char> <endElement> <namespaceURI/> <localName>d</localName> <qualifiedName>d</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>e</localName> <qualifiedName>e</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>eattr1</localName> <qualifiedName>eattr1</qualifiedName> <value>xmltech</value> <type>ENTITY</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>e</char> <char>\s</char> <endElement> <namespaceURI/> <localName>e</localName> <qualifiedName>e</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>f</localName> <qualifiedName>f</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>fattr1</localName> <qualifiedName>fattr1</qualifiedName> <value>xmltech\sIBMlogo</value> <type>ENTITIES</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>f</char> <char>\s</char> <endElement> <namespaceURI/> <localName>f</localName> <qualifiedName>f</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>g</localName> <qualifiedName>g</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>gattr1</localName> <qualifiedName>gattr1</qualifiedName> <value>xml4j3_0_0_EA3</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>g</char> <char>\s</char> <endElement> <namespaceURI/> <localName>g</localName> <qualifiedName>g</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>h</localName> <qualifiedName>h</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>hattr1</localName> <qualifiedName>hattr1</qualifiedName> <value>xml4j3_0_0_EA3\sXerces-J_1_0_1</value> <type>NMTOKENS</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>h</char> <char>\s</char> <endElement> <namespaceURI/> <localName>h</localName> <qualifiedName>h</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>i</localName> <qualifiedName>i</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>iattr1</localName> <qualifiedName>iattr1</qualifiedName> <value>UTF-8</value> <type>NOTATION</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>i</char> <char>\s</char> <endElement> <namespaceURI/> <localName>i</localName> <qualifiedName>i</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>j</localName> <qualifiedName>j</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>jattr1</localName> <qualifiedName>jattr1</qualifiedName> <value>anyvalue</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>jattr2</localName> <qualifiedName>jattr2</qualifiedName> <value>good</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>jattr3</localName> <qualifiedName>jattr3</qualifiedName> <value>fixed</value> <type>CDATA</type> </attribute> </attributes> </startElement> <char>\s</char> <char>E</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>j</char> <char>\s</char> <endElement> <namespaceURI/> <localName>j</localName> <qualifiedName>j</qualifiedName> </endElement> <char>\n</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |