RE: keyrefs from list type (ala IDREFS)

No, I believe that when a list-valued item is selected by an identity
constraint, it is treated as a single value.
 
Michael Kay
http://www.saxonica.com/


  _____  

From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of Gavin Kistner
Sent: 13 April 2006 20:23
To: xmlschema-dev@w3.org
Subject: keyrefs from list type (ala IDREFS)


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 07:36:40 UTC