W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2002

Conditional processing im schema!!

From: Cool Santos <mogot2002@yahoo.fr>
Date: Wed, 10 Apr 2002 06:16:19 -0400 (EDT)
Message-ID: <20020410101605.96735.qmail@web13003.mail.yahoo.com>
To: Schema_Mailinglist <xmlschema-dev@w3.org>
Hello,

I have a question. I have the following schema, only
as example:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="Process">
		<xs:annotation>
			<xs:documentation>Conditional
processing</xs:documentation>
		</xs:annotation>
		<xs:element name="first">
		    <xs:complexType>
			  <xs:sequence>
			      <xs:element name="A"
type="xs:positiveInteger" minOccurs="0"/>
			      <xs:element name="B"
type="xs:positiveInteger" minOccurs="0"/>
			      <xs:element name="C"
type="xs:positiveInteger" minOccurs="0"/>
			  </xs:sequence>
		    </xs:complexType>		    
		</xs:element>
		<xs:element name="D" type="xs:int" minOccurs="0"
maxOccurs="unbounded"/>
	</xs:element>
</xs:schema>


My question: I want to generate, that if A has the
value 10, per example D may not seem in the generated
XML document etc..
It was said to me that it goes with Schematron. I had
also tried that. But Schematron runs only under
Windows. 

It's now possible, without Schematron, to form ilk
conditional processings direct im schema ?????



mogo

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en franšais !
Yahoo! Mail : http://fr.mail.yahoo.com
Received on Monday, 15 April 2002 06:23:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:30 GMT