Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


keyrefs from list type (ala IDREFS)

From: "Gavin Kistner" <gavin.kistner@-----.--->
To: <xmlschema-dev@--.--->
Date: 4/13/2006 7:23:00 AM
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@a...
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.

 


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