brand-zz / jing-trang

Automatically exported from code.google.com/p/jing-trang
Other
0 stars 0 forks source link

Trang picks reserved/forbidden namespace prefix for certain namespace URIs #186

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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