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

Re: xslt2 grouping

Subject: Re: xslt2 grouping
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 15 Apr 2003 12:49:30 +0100
Re:  xslt2 grouping


>  The XPath 2.0 spec indicates that each node has its own node identity. So, 
>  since these nodes each has a separate identity they are not, in my view at 
>  least, duplicates.

That's nearly the answer I gave but I changed it just before posting to
say that they were not duplicates because they differ in the only
relevant property: the position in the original sequence.
Even if teh nodes had teh same node identity they would not be
duplicates in teh sense that Dave meant.

As it's XSLT2 and the top level select is selecting a sequence
rather than a set, the original sequence can have duplicates, in fact
it might be 
select="for i in 1 to 10 return ."
and be 10 copies of the current node.
Grouping this sequence may be pathologically strange but I think it
should be legal and you should end up with 10 copies of this node
distributed amongst the resulting group sequences.


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.