SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Notices
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
XPath API for Java
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-dateTime()

saxon:format-dateTime($value as xs:dateTime?, $picture as xs:string, $language as xs:string?, $calendar as xs:string?, $country as xs:string?) as xs:string?

saxon:format-dateTime($value as xs:dateTime?, $picture as xs:string) as xs:string?

saxon:format-date( $value as xs:date?, $picture as xs:string, $language as xs:string?, $calendar as xs:string?, $country as xs:string?) as xs:string?

saxon:format-date($value as xs:date?, $picture as xs:string) as xs:string?

saxon:format-time( $value as xs:time?, $picture as xs:string, $language as xs:string?, $calendar as xs:string?, $country as xs:string?) as xs:string?

saxon:format-time($value as xs:time?, $picture as xs:string) as xs:string?

These functions are identical to the XSLT functions of the same name, but are made available in the Saxon namespace for the benefit of XQuery users. For full details, see the current draft of the XSLT 2.0 specification.

For example, the call `saxon:format-date(current-date(), '[D1o] [MNn], [Y0001]')` might produce the output `3rd September, 2004`.

These functions (in the Saxon namespace) are available in Saxon-SA only.

Next