various satisfactions of the Names production in a NAMES attribute
<!DOCTYPE doc [ <!ELEMENT doc (a|refs)*> <!ELEMENT a EMPTY> <!ELEMENT refs EMPTY> <!ATTLIST refs refs IDREFS #REQUIRED> <!ATTLIST a id ID #REQUIRED> ]> <doc> <a id="A1"/><a id="A2"/><a id="A3"/> <refs refs="A1 A2 A3"/> <refs refs="A1 A2 A3"/> <refs refs="A1"/> </doc>
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>id</localName> <qualifiedName>id</qualifiedName> <value>A1</value> <type>ID</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>id</localName> <qualifiedName>id</qualifiedName> <value>A2</value> <type>ID</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>id</localName> <qualifiedName>id</qualifiedName> <value>A3</value> <type>ID</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> <value>A1\sA2\sA3</value> <type>IDREFS</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> </endElement> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> <value>A1\sA2\sA3</value> <type>IDREFS</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> </endElement> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> <value>A1</value> <type>IDREFS</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> </endElement> <ignorable>\n</ignorable> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/oasis/p06pass1.xml</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>id</localName> <qualifiedName>id</qualifiedName> <value>A1</value> <type>ID</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>a</qualifiedName> </endElement> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>id</localName> <qualifiedName>id</qualifiedName> <value>A2</value> <type>ID</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>a</qualifiedName> </endElement> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>id</localName> <qualifiedName>id</qualifiedName> <value>A3</value> <type>ID</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>a</qualifiedName> </endElement> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> <value>A1\sA2\sA3</value> <type>IDREFS</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>refs</qualifiedName> </endElement> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> <value>A1\sA2\sA3</value> <type>IDREFS</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>refs</qualifiedName> </endElement> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>refs</localName> <qualifiedName>refs</qualifiedName> <value>A1</value> <type>IDREFS</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>refs</qualifiedName> </endElement> <ignorable>\n</ignorable> <endElement> <namespaceURI/> <localName/> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |