Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Handling list of xsd:ID

From: "Michael Kay" <mike@--------.--->
To: "'Zafar Abbas'" <zafara@---------.--->, <xmlschema-dev@--.--->
Date: 5/17/2005 11:53:00 PM
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@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Zafar Abbas
> Sent: 17 May 2005 21:40
> To: xmlschema-dev@w...
> 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
> 
> 



From duerst@w... Wed May 18 04:51:10 2005
Received: from maggie.w3.org ([193.


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent