Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Possible to restrict top-level xs:element names?

From: kennardconsulting <richard@-----------------.--->
To: xmlschema-dev@--.---
Date: 11/6/2009 6:53:00 PM
Hi guys,

I'm generating a bunch of XML Schemas that look roughly like:

<xs:schema ...>
   <xs:element name="foo"/>
   <xs:element name="bar"/>
</xs:schema>

You can see the actual ones  http://metawidget.org/xsd here . My question
is, this schema allows me to declare 'foo' and 'bar' in my XML document, but
doesn't restrict me declaring, say, 'baz'. I was expecting something like...

<xs:schema final="#all">

....so that I could 'close' the set of possible xs:element names. Or maybe
that the set was closed by default and I'd need...

<xs:schema ...>
   <xs:element name="foo"/>
   <xs:element name="bar"/>
   <xs:any />
</xs:schema>

....to make it open. But instead the set of top-level xs:element names
appears 'open' by default and I can't find a way to close it? I have looked
all over the specs and in this forum, sorry if I'm being dumb.

Regards,

Richard.
-- 
View this message in context: http://old.nabble.com/Possible-to-restrict-top-level-xs%3Aelement-names--tp26227610p26227610.html
Sent from the w3.org - xmlschema-dev mailing list archive at Nabble.com.





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