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

RE: What good is Restriction?

From: Jeff Lowery <jlowery@scenicsoft.com>
Date: Wed, 10 Jul 2002 10:24:39 -0700
Message-ID: <D60D8F448216D611A21A00508B62B5BC5C7B@exchange-us.scenicsoft.com>
To: "'Biron,Paul V'" <Paul.V.Biron@kp.org>
Cc: xmlschema-dev@w3.org

> Here's a real simple 
> case (artificial,
> as it may be...I'm sure that given a few moments we could all 
> come up with a
> "useful" example) that illustrates the difficulty:
> 
> 	<xs:complexType name='base'>
> 		<xs:sequence>
> 			<xs:element name='a' minOccurs='0'>
> 				<xs:complexType>
> 					...
> 				</xs:complexType>
> 			</xs:element>
> 			<xs:element name='b'>
> 				<xs:complexType>
> 					<xs:sequence>
> 						<xs:element name='a'
> minOccurs='0'>
> 							<xs:complexType>
> 								...
> 							
> </xs:complexType>
> 						</xs:element>
> 					</xs:sequence>
> 				</xs:complexType>
> 			</xs:element>
> 		</xs:sequence>
> 	</xs:complexType>
> 
> If I write a restriction of 'base' that only mentions the element
> 'a'...which model does it refer to?

I thought XPaths were suggested as an alternative in this case. Why was that
rejected? It's used for keydefs.
Received on Wednesday, 10 July 2002 13:25:25 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:57 UTC