RE: Handling list of xsd:ID

I've asked this a number of times and never received a completely
satisfactory response, but the consensus seems to be that where the spec
talks about uniqueness of types derived from xs:ID, it means derived by
restriction, and not by list or union.

Michael Kay
http://www.saxonica.com/

 

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Zafar Abbas
> Sent: 17 May 2005 21:40
> To: xmlschema-dev@w3.org
> Cc: Priya Lakshminarayanan
> Subject: Handling list of xsd:ID
> 
> 
> If I have a xsd:list of xsd:ID values, how would the 
> uniqueness check be
> applied during validation? Consider the following:
> 
> <xsd:complexType name="base">
> 	 <xsd:attribute name="att1" type="myList"/>
> </xsd:complexType>
> 
> <xsd:simpleType name="myList">
> 	<xsd:list itemType="xsd:ID"/>
> </xsd:simpleType>
> 
> If I am validating an element 'doc' having this type. What 
> should be the
> outcome of validating the following instance?
> 
> <root>
> 	<doc att1="a b"/>
> 	<doc att1="b c"/>
> </root>
> 
> 
> Thanks,
> Zafar
> 
> 

Received on Tuesday, 17 May 2005 23:11:37 UTC