Re: Format number problem
Hi Ivan, > If it wasn't a typo I think it should be > > <xsl:value-of select = "format-number(@zne, '00')"/> > > single quote for the function parameter and double quote for the > attribute value That doesn't matter -- XML recognises both " and ' as attribute delimiters, and XPath recognises both " and ' as string delimiters, so you can use any mix you like (as long as you use entities if you use the same delimiters for the attribute and the string): <xsl:value-of select="format-number(@zne, '00')" /> <xsl:value-of select='format-number(@zne, "00")' /> <xsl:value-of select="format-number(@zne, "00")" /> <xsl:value-of select='format-number(@zne, '00')' /> Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format