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

Re: xsl:sort now working under unix

Subject: Re: xsl:sort now working under unix
From: Anton Triest <anton@xxxxxxxx>
Date: Thu, 23 Dec 2004 00:59:41 +0100
sort u case unix
Hi Sylvia,

<xsl:for-each select="/runs/case">
<!--ascending or descending-->
<xsl:apply-templates select="document(@filename)/case">
<xsl:sort select="/case/status" data-type = "text" order="descending"/>
</xsl:apply-templates>
</xsl:for-each>

xsl:apply-templates sets the context node to a case element, and status is a child element of case,
so you'll need <xsl:sort select="status" .../>


I don't think a sort select expression should ever start with "/": it is a valid XPath expression but it's "fixed"
(ie. it doesn't change over the various elements you apply-templates to.)


Cheers,
Anton

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.