Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Understanding Dawns! But 1 More Question About Keys/Refs...

From: "George Cristian Bina" <george@----.-->
To: "Jim Stanley" <JimS@--------------.--->, <xmlschema-dev@--.--->
Date: 8/3/2004 1:33:00 AM
Hi Jim,

You can look at
http://www.w3.org/TR/xmlschema-1/#Identity-constraint_Definition_details for
more details about the identity constraints.
If you have only one activityRef inside a dayBucket then your representation
will be equivalent with the variant I proposed.
As you can see following the link above the field must identify a single
node:
<quote>
{fields} specifies XPath expressions relative to each element selected by a
{selector}. This must identify a single node (element or attribute) whose
content or value, which must be of a simple type, is used in the constraint.
It is possible to specify an ordered list of {fields}s, to cater to
multi-field keys, keyrefs, and uniqueness constraints.
</quote>
but in your case there were more activityRef elements inside a dayBucket.
Moving the activityRef in the selector and selecting the current element
selects all the activityRef elements but also satisfies the condition that
the field selects only one element.

Best Regards,
George
-------------------------------------------------------
George Cristian Bina mailto:george@o...
<oXygen/> XML Editor and XSLT Editor/Debugger
www.---.com/


----- Original Message -----
From: "Jim Stanley" <JimS@M...>
To: <xmlschema-dev@w...>
Sent: Monday, August 02, 2004 7:42 PM
Subject: Re: Understanding Dawns! But 1 More Question About Keys/Refs...


>
> George,
>
> Thanks so much!  It worked like a shot.
>
> Can you explain *why* it works?  If I try and think it through, the
> xpath selector now points explicitly to the field I want to compare, and
> the '.' field just reinforces that.  But why should that work when the
> previous version doesn't?
>
> Jim Stanley
> Media Services Inc.
>

From srl01@u...  Mon Aug  2 21:35:29 2004
Return-Path: <srl01@u...>


transparent
Print
Mail
Like It
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