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

RE: Choice: attribute or child element

From: Dare Obasanjo <dareo@microsoft.com>
Date: Sat, 7 Dec 2002 14:44:57 -0800
Message-ID: <B885BEDCB3664E4AB1C72F1D85CB29F804B549C4@RED-MSG-10.redmond.corp.microsoft.com>
To: "Alessandro Vernet" <avernet@scdi.org>, <xmlschema-dev@w3.org>

Not using just W3C XML Schema. 

-- 
PITHY WORDS OF WISDOM 
Freedom is the right to be wrong not the right to do wrong.


This posting is provided "AS IS" with no warranties, and confers no
rights. 

>  
>  
> -----Original Message-----
> From: Alessandro Vernet [mailto:avernet@scdi.org] 
> Sent: Friday, December 06, 2002 3:15 PM
> To: xmlschema-dev@w3.org
> 
> 
> All,
> 
> Is there a way to write a schema to validate documents that 
> look like: 
> <a><b/></a>, or <a c="..."/> (i.e. the element "a" must have 
> a child element "b" or an attribute "c", but not both)?
> 
> Alex
> 
> 
Received on Saturday, 7 December 2002 17:45:20 GMT

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