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

RE: Question about different content-model for element w/ same name

From: Dare Obasanjo <dareo@microsoft.com>
Date: Mon, 22 Jul 2002 14:25:06 -0700
Message-ID: <8BD7226E07DDFF49AF5EF4030ACE0B7E0696F674@red-msg-06.redmond.corp.microsoft.com>
To: "Jeroen Koops" <jeroen@empanda.net>, <xmlschema-dev@w3.org>

> -----Original Message-----
> From: Jeroen Koops [mailto:jeroen@empanda.net] 
> Sent: Monday, July 22, 2002 2:15 PM
> To: xmlschema-dev@w3.org
> Subject: Question about different content-model for element 
> w/ same name
> 
> My question is: is it also allowed for elements with the same 
> name to use different content-models, _without_ the 
> possibility to make a distinction based on their context, as in:
> 
> <xs:element name="...">
>  <xs:complexType>
>   <xs:choice>
>    <xs:element name="myName" type="myFirstType"/>
>    <xs:element name="myName" type="mySecondType"/>
>   </xs:choice>
>  </xs:complexType>
> </xs:element> 
> 

Nope. This is invalid. 

-- 
PITHY WORDS OF WISDOM 
Going the speed of light is bad for your age.

This posting is provided "AS IS" with no warranties, and confers no
rights. 
Received on Monday, 22 July 2002 17:25:38 UTC

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