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

Re: Identity Constraints in Multiple Elements II

From: Jeni Tennison <jeni@jenitennison.com>
Date: Fri, 30 Nov 2001 09:48:37 +0000
Message-ID: <7857629226.20011130094837@jenitennison.com>
To: Joan Pujol <joan.pujol@ima.udg.es>
CC: "Henry S. Thompson" <ht@cogsci.ed.ac.uk>, xmlschema-dev@w3.org
Re: Identity Constraints in Multiple Elements II
Hi Joan,

> My question is another time the same. I get the same error with this
> minimized schema. Is this schema incorrect or it's a Xerces bug? I
> ask this, because I don't know if I have some misunterstanding with
> <groups>

I think it's a Xerces bug - you only define the identity constraint
once, so it's clear where it applies.

One thing about your schema:

>             <element name="Scalar" type="spe:TScalar">
>                 <unique name="NameScalar">
>                     <selector xpath="Attribute"/>
>                     <field xpath="@name"/>
>                 </unique>
>             </element>

The NameScalar unique identity constraint looks a bit strange - Scalar
elements don't have element children named 'Attribute' according to
the rest of the schema. I'm not sure whether that was just a test
example or something, but thought I should bring it to your attention.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Friday, 30 November 2001 04:48:44 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.