xsl-list
[Top] [All Lists]

RE: Sort Function

2005-09-20 20:09:42

There is now:

<xsl:function name="f:sort" as="item()*">
  <xsl:param name="in" select="item()*/>
  <xsl:perform-sort select="$in">
    <xsl:sort select="."/>
  </xsl:perform-sort>
</xsl:function>

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Alan [mailto:alan-xsl-list(_at_)engrm(_dot_)com] 
Sent: 21 September 2005 03:42
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Sort Function


Wondering if there is a sort function in XPath 2.0 or XSQL 2.0 that
would work like reverse, take a sequence, return a sequence.

Going to use for-each for now, but would prefer...

<xsl:value-of select="string-join(sort(fn:keywords(.)), '+')"/>

Cheers.

--
Alan Gutierrez - alan(_at_)engrm(_dot_)com
    - http://engrm.com/blogometer/index.html
    - http://engrm.com/blogometer/rss.2.0.xml

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--






--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>