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

Re: Could I set an attribute to <xsl:sort> ?

Subject: Re: Could I set an attribute to <xsl:sort> ?
From: Martin Grigorov <m.grigorov@xxxxxxxxxxxxxxx>
Date: Thu, 5 Jun 2003 10:13:22 +0300
martin grigorov
On Wednesday 04 June 2003 20:22, Oleg Tkachenko wrote:
> Martin Grigorov wrote:
> >><xsl:sort select="/some/where" order="{$ord}"/>
> >
> > I have already try it - it doesn't work.
>
> Elaborate please what do you mean by saying "it doesn't work": you've got
> some error or sorting doesn't work etc.
> Actually select="/some/where" in your example looks weird. I understand
> that's just sample, but having absolute location path in select attribute
> really doesn't make sense, because it doesn't depend on context hence
> always evaluates to the same string value.

I have this:

In the beginning of my xslt file:
<xsl:stylesheet version="1.0" >
...... 
<xsl:param name="ord"/>
...... some other params ......
..... functional part .....
---------------------------

<xsl:for-each select="/first/second">
<xsl:sort select="third/fourth" order="{$ord}" />
.....
</xsl:for-each>

When I print it to debug with <xsl:value-of select="$ord" /> it returns 
one of 'ascending' or 'descending', but it always sort ascending ( which is 
the default value ). I think that my param $ord has no sense.

OS: FreeBSD
XSLT processor: LibXSLT for Perl ( interface to the gnome libxslt library )

 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.