Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Conditional Levels of a Schema

From: "Michael Kay" <mike@--------.--->
To: "'Dieter Menne'" <dieter.menne@------------.-->, <xmlschema-dev@--.--->
Date: 4/7/2009 10:26:00 AM
> It is A, and Michael and Steve's as well as some of your 
> ideas are exactly to the point. We would like to keep one 
> master document that is the most liberal and has only the 
> minimal set as required items; and separate derived ones; 
> there are a few more variants than those mentioned here, most 
> of them "nested" to form a stack of requirements (the patient 
> case is the only non-nested).
> 
> The idea is that hospital administrators can put up a filter 
> allowing only anonymized files out. Or that researcher who 
> want calibrations information that is not relevant for others 
> can check with their special version of the schema if all 
> required items are there. 
> 
> While Michael's $param idea looked easiest for me at first, I 
> think Steve has made a good point and that his way is 
> preferred because is ensures that the master document is always valid.
> 

I've actually been experimenting with ideas that take the "conditional type
assignment" facility in XSD 1.1 and extend it by allowing access to "schema
parameters" which must be set when starting a validation episode (the
current facility can only be driven by data that appears in the instance
document, not by external data supplied at validation time). This approach
seems to offer a very good fit to your use case (which I think is not at all
uncommon). Unfortunately the schema specs move slowly.

Michael Kay
http://www.saxonica.com/


From lists@n... Tue Apr 07 13:41:46 2009
Received: from maggie.w3.


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