|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] [no subject]
Hi all, I hope you can help. i wonder if there is a function in xsl that does the same as ABS(). So it has to look for the absolute value of a variable. I would like to do this: <xsl:attribute name="href">showGroup.jsp?sortBy=<xsl:choose> <xsl:when test="($sortBy=1) or ($sortBy=-1)"> <xsl:value-of select="-$sortBy"/> </xsl:when> <xsl:otherwise> 1 </xsl:otherwise> </xsl:choose> </xsl:attribute> i would like to replace "<xsl:when test="($sortBy=1) or ($sortBy=-1)">" with something like this: <xsl:when test="abs($sortBy)"> Is this possible? Thnx Hervé XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart


![[no subject]](/images/get_stylus.gif)





