[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Test For Numeric Values?


Subject: RE: [xsl] Test For Numeric Values?
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Fri, 8 Apr 2005 09:34:37 +0300

Hi,

> >Writing a style sheet and wanting to test a node value to
> see whether it is
> >numeric or not? (Decides HTML align formatting)

[snip]

> Test Element
> <xsl:if test="number(test)">

This unfortenately will not work if the value of "number(test)" is 0 (zero).

Cheers,

Jarno - Madam Zu: March 2004 <www.hardnrg.com>


Current Thread