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

Re: Sort By calclulated variable

Subject: Re: Sort By calclulated variable
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sun, 3 Sep 2006 21:56:13 +0100
bpel sort by foreach
   <xsl:template name="positionfilter">
   <xsl:param name="sortedlist"/>
   <xsl:param name="totale"/>
   <xsl:for-each select="msxsl:node-set($sortedlist)/*">
   <xsl:sort select="$totale"/>
   

You've posted dozens of versions of your question but never really said
what transform you are trying to do, please read the list guidelines on
how to construct a question so that people can help.

I don't know what you are trying to do so I can't suggest alternative
code, but it is clear that the above code will not sort the
list. $totale is a parameter passed in to the template so it has a fixed
value (which may be different each time the template is called, but
doesn't change within a given execution of the template) so you are
sorting on a constant value that does not depend on any item in the list
that is being sorted. In this situation that xslt spec guarantees that
the sort is stable and the original node set order will be used.

David

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.