Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Conditional Levels of a Schema

From: Dieter Menne <dieter.menne@------------.-->
To: xmlschema-dev@--.---
Date: 4/2/2009 4:06:00 AM
Hi,

we are currently defining a format for medical data storage
(hrmconsensus.org). The full version is available 
http://hrmconsensus.org/media/hrm/xhrm/xhrm02/xhrm0_2.xsd here .

In the simplified example below, we have the always mandatory deviceTyp. For
patientsType, we would like to have a global conditional switch so that
three flavors are possible

-- minOccurs = "0" for internal clinical use
-- minOccurs = "1" for archiving, must contain patient info
-- minOccurs = "never" anonymized, must not contain patient info

I know that the latter is not possible, that conditionals are not supported
in XSL, and that Schematron would be an alternative.  Note that the
conditionals occur in several nesting levels, so that we cannot easily
combine versions of a master element with details, but they are always of
the type "may", "must", "must not".

We would like to avoid having several xsd files and prefer a common file
with branching. Any ideas or references to ideas are appreciated.

Dieter Menne 
on behalf of the hrmconsensus group.


<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="0.2">
	<xs:element name="xhrm">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="device" type="deviceType"/>
				<xs:element name="patients" type="patientsType" minOccurs="0"/>
			</xs:sequence>
		</xs:complexType>
		</xs:element>
</xs:schema>

-- 
View this message in context: http://www.nabble.com/Conditional-Levels-of-a-Schema-tp22842334p22842334.html
Sent from the w3.org - xmlschema-dev mailing list archive at Nabble.com.



From mike@s... Mon Apr 06 10:05:37 2009
Received: from bart.w3.org ([128.30.52.6


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