- From: Gavin Kistner <gavin.kistner@anark.com>
- Date: Thu, 13 Apr 2006 13:23:13 -0600
- To: <xmlschema-dev@w3.org>
- Message-ID: <E6A2B94B67BF4D4183BED2627746906D031318CE@asimov.anark.com>
Is it possible to apply keyref constraints to each item in a list attribute? For example: <root> <item id="1" /> <item id="2" /> <aggregate items="1 2" /> </root> .... <xsd:unique name="unique-ids"> <xsd:selector xpath="./item" /> <xsd:selector xpath="@id" /> </xsd> .... <xsd:attribute name="items" use="required"> <xsd:simpleType> <xsd:list itemType="xsd:nonNegativeInteger" /> </xsd:simpleType> </xsd:attribute> In the above example, ID and IDREFS would do what I want, but in my particular application, I need more granular control over the scope. Is there a way to use the above schema and apply a constraint, ensuring that the ids listed in items correspond to valid 'id's? My apologies if this is a FAQ. I searched the list archive (and web), and I could only find one question related to this (with no responses) and a second response which maybe indicated that it's not possible. Thanks in advance for any help (and sorry about the bloated corporate ..sig), Gavin Kistner Product Designer Anark Corporation 1434 Spruce Street, Suite 200 Boulder, Colorado 80302 [P] 303-545-2592, x256 [F] 303-545-2575 gavin.kistner@anark.com http://www.anark.com <http://www.anark.com/> Revolutionize Communication with Interactive 3D This electronic message is intended to be viewed only by the individual or entity to whom it is addressed. It may contain information that is privileged, confidential and exempt from disclosure under applicable law. Any dissemination, distribution or copying of this communication is strictly prohibited without our prior permission. If the reader of this message is not the intended recipient please notify us immediately by return e-mail and delete the original message and any copies of it from your computer system.
Received on Friday, 14 April 2006 00:57:25 UTC