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...
Is it posible using format-number function that the negative numbers to be
displayed enclosed in brackets? for example, -1234 = (1234)
Jaime
--+------------------------------------------------------------------
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>
--+--