[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: Test For Numeric Values?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 8 Apr 2005 08:12:09 +0100
> Test Element
> <xsl:if test="number(test)">
> test is a number
> </xsl:if>
> 
> Test Attribute
> <xsl:if test="number(test/@test)">
> test attribute is a number
> </xsl:if>

That tests whether it's a non-zero number, which isn't what was asked for.

Michael Kay
http://www.saxonica.com/

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member