Subject: RE: [xsl] format-number From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 26 Feb 2003 16:41:30 -0500 |
I believe the poster was looking for information on whether a value passed to format-number() that is not a number could be made to return something other than NaN.
I would be interested if anyone could comment.
T:\ftemp>type semcheski.xsl <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/"> A: <xsl:value-of select="format-number( 1.23, '#.000', 'michael' )"/> B: <xsl:value-of select="format-number( 'ab', '#.000', 'michael' )"/> C: <xsl:value-of select="format-number( 2.34, '#.000', 'michael' )"/> </xsl:template>
A: 1.230 B: not a nice number C: 2.340 T:\ftemp>
-- Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO North America: June 16-20, 2003
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-10-1 Practical Formatting Using XSL-FO Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] format-number, Michael Semcheski | Thread | RE: [xsl] format-number, Lee, Insoo |
Re: [xsl] XSL-FO versus PostScript, Zack Brown | Date | RE: [xsl] format-number, Lee, Insoo |
Month |