[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Is it possible to display blank when sum or count retruns 0 by using format-number
Subject: RE: [xsl] Is it possible to display blank when sum or count retruns 0 by using format-number
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Tue, 1 Mar 2005 08:58:51 +0200
|
Hi,
> I want to display blank instead of 0 when count or sum
> returns 0. Is it possible to achieve the same using
> format-number function or should I write my own
> formatter to achieve it.
<xsl:variable name="n" select="count(foo)"/>
<xsl:value-of select="format-number($n, '#')"/>
Cheers,
Jarno - Cephalgy: Wer ich Bin
|