[RNG] Excluding the null-namespace
Posted: Wed Jul 08, 2015 6:42 pm
Hi,
given the following schema:
why does the line
resolve to "mynamespace" instead of "[No Namespace]" (i.e. the null namespace)?
How would I exclude all attributes in the null-namespace in my above schema?
Thanks,
Christian
given the following schema:
Code: Select all
<grammar
xmlns="http://relaxng.org/ns/structure/1.0"
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
ns="mynamespace">
<start>
<element name="root">
<zeroOrMore>
<attribute>
<anyName>
<except>
<nsName ns=""/>
<nsName ns="mynamespace"/>
</except>
</anyName>
</attribute>
</zeroOrMore>
</element>
</start>
</grammar>
Code: Select all
<nsName ns=""/>
How would I exclude all attributes in the null-namespace in my above schema?
Thanks,
Christian