Tests DefaultDecl with a required field missing. There is no attribute value specified after the key word "#FIXED" in the DefaultDecl in the AttDef in the AttlistDecl in the DTD.
<?xml version="1.0"?> <!-- syntax test for Production 60--> <!DOCTYPE Java [ <!ELEMENT Java ANY> <!ELEMENT one EMPTY> <!ATTLIST one chapter CDATA #FIXED > ]> <Java> <one chapter="Introduction"></one> Negative test. Missing required field(#FIXED should have a value) </Java>
Expected result | Actual result for net.sf.saxon.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/not-wf/P60/ibm60n04.xml</systemID> </resolveEntity> <fatalError/> <endDocument/> </ConformanceResults> |