You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/07/12 17:00:54 UTC

DO NOT REPLY [Bug 10741] New: - invalid format-number function

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10741>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10741

invalid format-number function 

           Summary: invalid format-number function
           Product: XalanC
           Version: 1.3.x
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: XalanC
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: adazard@silicom.fr


the format-number function doesn't format anything...

EXAMPLE :
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version 
= "1.0" > 
	<xsl:output method = "text" /> 
  	<xsl:variable name = "A" >122.2640</xsl:variable> 
	<xsl:template match = "/" > 
             <xsl:value-of select = "format-number($A,'#.##')" /> 
       </xsl:template> 
</xsl:stylesheet> 

RESULT :
122.2640 (in place of 122.26)