Trang picks reserved/forbidden namespace prefix for certain namespace URIs
GoogleCodeExporter opened this issue · 0 comments
GoogleCodeExporter commented
Translate the following to XSD:
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
<start>
<element name="root" ns="http://test.example/xmlns">
<empty/>
</element>
</start>
</grammar>
The resulting XSD contains this namespace declaration which is invalid:
xmlns:xmlns="http://test.example/xmlns"
Trang should not pick any namespace prefix starting with "xml"
(case-insensitive), see http://www.w3.org/TR/REC-xml-names/#ns-decl: "All other
prefixes beginning with the three-letter sequence x, m, l, in any case
combination, are reserved."
Original issue reported on code.google.com by uja...@gmail.com
on 19 Aug 2014 at 8:23