Verifies that an XML parser will parse a NOTATION attribute; the output phase of this test ensures that both notations are reported to the application.
<!DOCTYPE doc [ <!ELEMENT doc (#PCDATA)> <!ATTLIST doc a NOTATION (n1|n2) #IMPLIED> <!NOTATION n1 SYSTEM "http://www.w3.org/"> <!NOTATION n2 SYSTEM "http://www.w3.org/"> ]> <doc></doc>
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <notation> <name>n1</name> <systemID>http://www.w3.org/</systemID> </notation> <notation> <name>n2</name> <systemID>http://www.w3.org/</systemID> </notation> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <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/xmltest/valid/sa/076.xml</systemID> </resolveEntity> <notation> <name>n1</name> <systemID>http://www.w3.org/</systemID> </notation> <notation> <name>n2</name> <systemID>http://www.w3.org/</systemID> </notation> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |