Restricting Namespace! Help-me plz!
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 4
- Joined: Thu May 11, 2006 3:07 pm
Restricting Namespace! Help-me plz!
Hi people!
I'm with a big problem. I have to restrict the namespaces of my schema xsd.
-------
For Example:
In xsd schema there is:
<TestXML xmlns:ds="http://www.w3.org/2000/09/xmldsig#" ...>
I need validate this value with this list:
http://www.test.com/xmldsig#
http://www.aol.com/xmldsig#
--------
This is necessary because when user change the value of xmlns:ds tag, the signature value of my xml is changed. To solve this, I define a list of namespaces and the value informed needs to belong in the list.
Sorry my english, I'm studying.
Thanks!
Luiz - Procergs - Porto Alegre - RS - Brazil
I'm with a big problem. I have to restrict the namespaces of my schema xsd.
-------
For Example:
In xsd schema there is:
<TestXML xmlns:ds="http://www.w3.org/2000/09/xmldsig#" ...>
I need validate this value with this list:
http://www.test.com/xmldsig#
http://www.aol.com/xmldsig#
--------
This is necessary because when user change the value of xmlns:ds tag, the signature value of my xml is changed. To solve this, I define a list of namespaces and the value informed needs to belong in the list.
Sorry my english, I'm studying.
Thanks!
Luiz - Procergs - Porto Alegre - RS - Brazil
-
- Posts: 4
- Joined: Thu May 11, 2006 3:07 pm
OOOppppssss....
People,
One correction...
I spoke with my partner and We find a error in this post.
I have a tag xmlns:xsi, xmlns:nfe and xmlns:xsi. We don't permit other tag.
If user put xmlns:BR the shema need report a error.
Please, need help!
Thanks.
One correction...
I spoke with my partner and We find a error in this post.
I have a tag xmlns:xsi, xmlns:nfe and xmlns:xsi. We don't permit other tag.
If user put xmlns:BR the shema need report a error.
Please, need help!
Thanks.
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Luiz,
That is not a tag, it is a namespace declaration. XML Schema does not constraint in any way the namespace declarations and what prefixes should be used to express an instance document. For XML Schema there is no difference between the following:
<test xmlns="http://www.example.com/test/">
<test:test xmlns:test="http://www.example.com/test/">
<x:test xmlns:x="http://www.example.com/test/">
Best Regards,
George
That is not a tag, it is a namespace declaration. XML Schema does not constraint in any way the namespace declarations and what prefixes should be used to express an instance document. For XML Schema there is no difference between the following:
<test xmlns="http://www.example.com/test/">
<test:test xmlns:test="http://www.example.com/test/">
<x:test xmlns:x="http://www.example.com/test/">
Best Regards,
George
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