Three-letter language codes are allowed
<!DOCTYPE foo [ <!ELEMENT foo ANY> <!ATTLIST foo xml:lang NMTOKEN #IMPLIED> ]> <foo xml:lang="nds"> <foo xml:lang="art-lojban"/> </foo>
Expected result | Actual result for net.sf.saxon.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/XML/1998/namespace</namespaceURI> <localName>lang</localName> <qualifiedName>xml:lang</qualifiedName> <value>nds</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <char>\n</char> <char>\s</char> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/XML/1998/namespace</namespaceURI> <localName>lang</localName> <qualifiedName>xml:lang</qualifiedName> <value>art-lojban</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <char>\n</char> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/eduni/errata-2e/E29.xml</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/XML/1998/namespace</namespaceURI> <localName>lang</localName> <qualifiedName>xml:lang</qualifiedName> <value>nds</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <char>\n</char> <char>\s</char> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/XML/1998/namespace</namespaceURI> <localName>lang</localName> <qualifiedName>xml:lang</qualifiedName> <value>art-lojban</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <char>\n</char> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |