XML Schema 1.1 wildcard question
This should cover W3C XML Schema, Relax NG and DTD related problems.
XML Schema 1.1 wildcard question
In Relax NG it's real easy to exclude elements in a list of namespaces that includes the no-namespace namespace:
<anyName>
<except>
<nsName ns="http://example.com/>
<nsName ns=""/>
</except>
</anyName>
This simple thing is (afaik) impossible in XML Schema 1.0, and for XML Schema 1.1 the spec is (so typical!) impossible to figure out how to do this simple thing. (Which is why I use RNG!)
Anyway, can anyone tell me how to do this is XMLS 1.1? Does this work:
<any notNamespace="http://example.com ''"/>
(in other words, a pair of single quotes in the list) Some other way?
John
<anyName>
<except>
<nsName ns="http://example.com/>
<nsName ns=""/>
</except>
</anyName>
This simple thing is (afaik) impossible in XML Schema 1.0, and for XML Schema 1.1 the spec is (so typical!) impossible to figure out how to do this simple thing. (Which is why I use RNG!)
Anyway, can anyone tell me how to do this is XMLS 1.1? Does this work:
<any notNamespace="http://example.com ''"/>
(in other words, a pair of single quotes in the list) Some other way?
John
Re: XML Schema 1.1 wildcard question
Hi John,
You can use
Best Regards,
George
You can use
- ##targetNamespace - for the schema target namespace
- ##local - for no namespace
Code: Select all
<any notNamespace="http://example.com ##local"/>
George
George Cristian Bina
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