Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Extensible Enumerations Technique [Thread Next] Schema that mandates elements and attributes from disparate namespaces?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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
