Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Schema that mandates elements and attributes from disparate namespaces?

From: Gavin Kistner <phrogz@---.--->
To: xmlschema-dev@--.---
Date: 3/13/2008 2:02:00 PM
How can I write a schema that requires an XML file to have a structure  
like the following?

   <root xmlns:foo="http://foo.com" xmlns:bar="http://bar.com">
     <alpha>This is in the default namespace</alpha>
     <bravo foo:msg="This namespaced attribute is required on bravo  
elements." >
       <bar:charlie>This namespaced element is required as a child of  
bravo.</bar:charlie>
     </bravo>
   </root>

What I'm trying to do is create a specific derivation of SVG, that  
allows certain namespaced elements and attributes in specific  
locations. I don't want to just extend SVG to allow various non- 
namespaced attributes and elements; I want to require those specific  
namespaced items.

Thanks in advance!


From petexmldev@c... Fri Mar 14 10:09:03 2008
Received: fr


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent