Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Creating library schemas which only expose a single document element

From: Fraser Crichton <fraser.crichton@---------------.--.-->
To: xmlschema-dev@--.---
Date: 5/24/2005 2:17:00 AM
Hi,

This kind of a follow up to something I posted to XML-DEV /-//Validating 
against the correct root element using library schemas// 
/http://lists.xml.org/archives/xml-dev/200505/msg00263.html (BTW thanks, 
Michael and Henry, for getting back to me).

If I'm creating a set of library schemas where I want to enforce that 
particular document / message schemas are valid and that no fragments of 
documents are valid  it seems I have two approaches  -

1) I adopt a strict venetian blind approach i.e. there are no global 
element declarations in my library schemas and only a Russian doll 
approach in my message / document schemas to enforce that there is only 
one valid root element (however that way I can't create any reusable 
elements just reusable types).

2) I use xsd:group to hide my global elements but get reuse from them by 
referencing the groups.

I have a some questions -

Would the xsd:group approach just be a dirty hack?

Is there any reason why OASIS have not adopted xsd:group (sorry to keep 
banging on about OASIS but the New Zealand government are looking at a 
number of their standards ;-) )?

Cheers,

Fraser




Attention:
This email may contain information intended for the sole use of
the original recipient. Please respect this when sharing or
disclosing this email's contents with any third party. If you
believe you have received this email in error, please delete it
and notify the sender or postmaster@s... as
soon as possible. The content of this email does not necessarily
reflect the views of SolNet Solutions Ltd.



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