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

Choosing different sorts

Subject: Choosing different sorts
From: "Derek Hohls" <DHohls@xxxxxxxxxx>
Date: Thu, 15 Jul 2004 08:31:00 +0200
different sorts
I had a look in the archives before posting, and am
not sure I understand the method which uses:

<xsl:sort select="*[name(.) = $sortfield]"/>

I have tried, in my code to have:

  <xsl:for-each select="file">
     <xsl:choose>
        <xsl:when test="$sort='design'"><xsl:sort
select="name"/></xsl:when>
        <xsl:when test="$sort='stat'"><xsl:sort
select="status"/></xsl:when>
        <xsl:otherwise><xsl:sort select="id"/></xsl:otherwise>         

      </xsl:choose>

where $sort is a parameter passed in (via another web page).
(NB: the actual select fields are quite long path strings...)

but this is clearly wrong!

Any guidance on this area would be welcome.

Thanks
Derek

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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.