[RNG] Excluding the null-namespace
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 15
- Joined: Sat Mar 12, 2005 2:45 pm
- Location: Munich, Germany
[RNG] Excluding the null-namespace
Post by Christian Roth »
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
<oXygen/> XML Editor 16.1
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: [RNG] Excluding the null-namespace
Hi,
From what I tested your schema is correctly excluding all attributes from "no namespace".
Regards,
Adrian
That's a bug in the RNG diagram representation, it considers an empty @ns value as unset and incorrectly inherits the namespace. It should be "no namespace". I've logged this on our issue tracking tool.Christian Roth wrote:why does the lineresolve to "mynamespace" instead of "[No Namespace]" (i.e. the null namespace)?Code: Select all
<nsName ns=""/>
From what I tested your schema is correctly excluding all attributes from "no namespace".
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 15
- Joined: Sat Mar 12, 2005 2:45 pm
- Location: Munich, Germany
Re: [RNG] Excluding the null-namespace
Post by Christian Roth »
Thank you Adrian for the info. So my schema is correct, just the visual representation in oXygen isn't (yet
). Good to know, and enough to let me continue my work for now.
Regards, Christian

Regards, Christian
<oXygen/> XML Editor 16.1
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service