Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Two attributes should have same reference point/Two elements should have same reference point under the same root elment

From: "Michael Kay" <mike@--------.--->
To: <saisuman@---------.--.-->
Date: 1/18/2008 11:20:00 AM
 
> 
> Hi jeni,

If you want to communicate with jeni then please write to her directly.
You're writing to a public list so I assume your message is addressed to
everyone.
> 
> case1:Please let me know the case where the two elements 
> under the same parent element have the same name and both 
> should refer to the same value.
> If the value of one element changed then the value of the 
> other element with same name should contain same value. 
> Because both should refer the same reference point.
> 
> case2:Two attributes under the same parent element shold 
> point the same value and both attributes should have the same value.
> If the value of the one attribute changed then the value of 
> the other attribute with same name should contain same value. 
> Same for this both should refer the same reference point.
> 

It's helpful to give examples of valid and invalid input, especially if you
use non-standard terminology like "point to" and "reference point".

It might be possible to achieve this requirement using key and keyref,
something like this:

<xs:key name="k1">
  <xs:selector xpath="@att1"/>
  <xs:field xpath="."/>
</xs:key>

<xs:key name="k2" refer="k1">
  <xs:selector xpath="@att2"/>
  <xs:field xpath="."/>
</xs:key>

Michael Kay
http://www.saxonica.com/


From ht@i... Fri Jan 18 18:59:05 2008
Received: from maggie.w3.org ([193.51


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