Closed GoogleCodeExporter closed 8 years ago
This is a bug in xmllint.
Trang converts test.xml to:
<?xml version="1.0" encoding="UTF-8"?>
<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<element name="root">
<attribute name="type">
<data type="NCName"/>
</attribute>
<data type="NCName"/>
</element>
</start>
</grammar>
test.xml is valid with respect to this.
I guess --relaxng tells xmllint not to do any DTD processing, which is not
correct:
it should at least do the minimum amount of processing required by the XML
Recommendation, which includes defaulting attributes specified in the internal
subset.
Original comment by jjc.jclark.com
on 21 Sep 2009 at 12:47
Original issue reported on code.google.com by
youpi...@gmail.com
on 20 Sep 2009 at 11:47