Subject: RE: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Test For Numeric Values?, James Fuller | Thread | RE: [xsl] Test For Numeric Values?, Jarno.Elovirta |
RE: [xsl] Test For Numeric Values?, Michael Kay | Date | Re: [xsl] Test For Numeric Values?, James Fuller |
Month |