[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Formatting negative numbers with format-number
Youre easiest solution would be to use starts-with as so:
<xsl:if test="starts-with(string($number), '-')"><xsl:value-of select="$number * -1"/></xsl:if> or the same style using the substring-after method... <xsl:if test="starts-with(string($number), '-')"><xsl:value-of select="concat('(', substring-after(string($number), '-'), ')')"/></xsl:if> Either way, this should work... Regards, <M:D/> Jaime Stuardo wrote: Hi all...
|
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
|