Re: XSLT in Mozilla
Fabrice Desré <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Le Wed, 07 Dec 2005 14:23:34 -0800, meena.shah a écrit : > thanks! that was really helpful... I've got another question, based on the > previous .xml i added this template to the xsl > > <xsl:template match="ns1:Packets"><xsl:value-of > select="format-number(Packets, '#,###,###.###')"/></xsl:template> > > My output is NaN (not a number?), I'm not sure why xsl is having trouble > resolving that the value of Packet is in fact a number. The same thing > happens if I try to divide or do other mathematical operations. What you wrote select the Packets child of ns1:Packets, which doesn't exist. Try this : <xsl:value-of> select="format-number(., '#,###,###.###')"/> Fabrice