Text declarations (which optionally begin any external entity) are required to have "encoding=...".
<!DOCTYPE root SYSTEM "dtd07.dtd" [ <!ELEMENT root EMPTY> ]> <root/>
Expected result | Actual result for net.sf.saxon.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/not-wf/dtd07.dtd</systemID> </resolveEntity> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/not-wf/dtd07.xml</systemID> </resolveEntity> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/not-wf/dtd07.dtd</systemID> </resolveEntity> <fatalError/> <endDocument/> </ConformanceResults> |