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

Re: xslt 1.0 duplicates refresher

Subject: Re: xslt 1.0 duplicates refresher
From: "David Carlisle d.p.carlisle@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 12 Nov 2015 12:10:25 -0000
Re:  xslt 1.0 duplicates refresher
On 12 November 2015 at 12:03, Ihe Onwuka ihe.onwuka@xxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> If a nodeset contains multiple elements with the same value then unioning
> the nodeset with itself will not eradicate those duplicates.
>

The value (as in <xsl:value-of) of the node is not related to the union
which is just about node identity.
A union of a nodeset with itself is always the same as the original set.


>
> If I have a nodeset containing
>
> <a>1</a>
> <a>2</a>
>
> which I use as a lookup, then a nodeset created just by looking up the
> value 1, 5 times will not contain <a>1</a> once and not 5 times.
>
>
That is completely unclear:-) XSLT1 can't create new node sets only select
sets of nodes from the source
so if you are selecting from two nodes, the resulting nodeset will have 0,1
or 2 nodes depending which of those nodes are selected.



> The latter case is because a nodeset cannot contain multiple copies of the
> same node.
>
> Please correct my thinking here.
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <-list/2739265> (by
> email <>)
>


David



-- 
http://dpcarlisle.blogspot.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
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-2013 All Rights Reserved.