xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[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


Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor