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-EE only. They are obsolescent since they are now available in the standard fn: namespace, whether you are using XSLT, XPath, or XQuery.