|
Subject: RE: [xsl] Dynamic sort order.. From: Kay Michael <Michael.Kay@xxxxxxx> Date: Sat, 23 Dec 2000 00:24:13 -0000 |
> <xsl:for-each ...>
> <xsl:if test="$level != '0'"/><xsl:sort order="descending"
> .../></xsl:if>
> <xsl:if test="$level = '0'"/><xsl:sort order="ascending"
> .../></xsl:if>
> ...
> </xsl:for-each>
>
> The above approach is invalid..is there some way to do this?
Try something like:
<xsl:sort order="{substring("ascending descending", boolean($level)*10+1,
10)}"/>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Dynamic sort order.., Jeni Tennison | Thread | [xsl] Which XSL DTD to use and how , Uri Goldstein |
| RE: [xsl] performance of copying al, Kay Michael | Date | RE: [xsl] White space - preserving , Kay Michael |
| Month |