Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] What does the phrase "duplicates removed" mean precisely?

From: "Michael Kay" <mike@------------>
To:
Date: 2/1/2006 12:01:00 PM
> Now, if I had a structure like this:
> 
> <root>
>  <SomeTag>This is the text</SomeTag>
>  <SomeTag>This is the text</SomeTag>
> </root>
> 
> I'd have a duplicate.

No, when the spec speaks of duplicates it's generally talking about node
identity, not content. People sometimes use the phrase "two nodes with the
same identity" - I try to avoid that, because you've then got one node, not
two. A sequence contains duplicates if it contains the same node twice: for
example, with <root> in the above example as the context node, the sequence
(child::SomeTag, descendant::SomeTag) contains four items, namely two
occurrences of each of the two SomeTag nodes. If you replace the ","
operator with "|", duplicates are eliminated, and you end up with one
occurrence of each of the two SomeTag elements.

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


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