SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Conditions of Use
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
The XPath API
Saxon on .NET
Extensibility
Saxon Extensions
| Introduction
| EXSLT Extensions
| Extension attributes (XSLT only)
| Additional serialization parameters
» | Extension functions
| Extension instructions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
Standards Conformance

# saxon:format-number()

format-number($value as xs:double, $picture as xs:string) as xs:string

This function (in the Saxon namespace) is available in Saxon-SA only.

This function is identical to the two-argument version of the `format-number` function in XSLT 2.0, but in the Saxon namespace. It uses the default behavior of the XSLT function when there is no `xsl:decimal-format` declaration in the stylesheet, which means that it is not possible to change the characters used as the decimal point, grouping separator, and so on.

For example, the call `saxon:format-number(123.4567, '0000.00')` produces the output `0123.46`.

For full details, see the current draft of the XSLT 2.0 specification.

Next