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

RE: sort / unsort

Subject: RE: sort / unsort
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Fri, 9 Aug 2002 10:05:35 +0100
michael berrow
> Interesting,
> Could you show me?  I couldn't see a way of getting
> a sorted nodeset into a variable. Wouldn't this approach require that?

It needs the node-set() extension function.

<xsl:variable name="n">
  <xsl:for-each>
    <xsl:sort>
    <xsl:copy-of select="."/>
  </
</

<xsl:for-each select="xx:node-set($n)">
 ...


Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> 
> -- Mike Berrow
> 
> ----- Original Message ----- 
> From: "Mike Brown" <mike@xxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Thursday, August 08, 2002 10:09 PM
> Subject: Re:  sort / unsort
> 
> 
> Mike Berrow wrote:
> > Does anyone see a better way?
> 
> I was going to try the Kay/Becker/Holman technique from the FAQ.
>   http://www.dpawson.co.uk/xsl/sect2/muench.html#d197e74
> 
> That is, find the difference between all the nodes and the 
> sorted nodes to get the remaining nodes. No need for 
> generate-id(); count() and != ought to work nicely.
> 
>    - Mike 
> ______________________________________________________________
> ______________
>   mike j. brown                   |  xml/xslt: http://skew.org/xml/
>   denver/boulder, colorado, usa   |  resume: 
> http://skew.org/~mike/resume/
> 
>  XSL-List info and archive:  
> http://www.mulberrytech.com/xsl/xsl-list
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.