Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: Dimitre Novatchev <dnovatchev@--------->
To:
Date: 2/1/2006 3:08:00 AM
On 2/1/06, Mark Wilson <drmark@xxxxxxxxxxxxxxx> wrote:
> In reading Michael Kay's XPath 2.0, I frequently encountered the phrase,
> "...returned with no duplicates...". I checked the FAQ mantained by Dave
> Pawson under both XSLT Terminology -- where "duplicates" is used to define
> the term "Node Set" -- and under XSL Frequently Asked Questions where
> "duplicates" has its own heading. From that reading, I am all but convinced
> that "duplicates" refers to the (I cannot recall the correct XML term)
> content text demarked by a starting and ending XML element pair, as in
>
>    <SomeTag>This is the text</SomeTag>

Not only. This may be attributes with the same (repeating) value.
>
> Is this correct, or is my understanding imperfect? Are there any other kind
> of "duplicates" removed?

I find the notion of "duplicates" much broader -- generally they are a
set of items having the same value (generally expressed as an XPath
expression). In XPath 2.0 these items may even be scalars (not nodes).

In any such case as defined above, the task of "removing duplicates"
(or grouping)  is meaningful.


--
Cheers,
Dimitre Novatchev
---------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all.


> Thanks,
> Mark


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