Subject: RE: [xsl] Sorting results by output of a conversion template From: "Michael Kay" <mhk@xxxxxxxxx> Date: Fri, 9 Jan 2004 09:56:53 -0000 |
> I need to be able to sort my results by the output of this > template. So...is there a way using XSL:SORT to call a > template (like the one above) and sort the results that way?? Not in 1.0. You can do it using a 2-phase transformation, where the first phase writes a temporary tree containing the expanded values, and the second phase sorts the nodes from the temporary tree (accessed using exslt:node-set()). In XSLT 2.0 this becomes easy using a call on an xsl:function from within the <xsl:sort> select expression. Michael Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Sorting results by output of , allan . mccluskey | Thread | [xsl] Problems checking if document, Karen Dunstall |
RE: [xsl] mixture of XML and HTML i, Michael Kay | Date | Re: [xsl] mixture of XML and HTML i, David Carlisle |
Month |