[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: keyrefs

From: Michael Kay <mike@saxonica.com>
Date: Fri, 14 Apr 2006 08:36:26 +0100
To: "'Gavin Kistner'" <gavin.kistner@anark.com>, <xmlschema-dev@w3.org>
Message-ID: <E1FUIr6-00060k-Jg@lisa.w3.org>
idrefs is no list type
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 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.