The list on this page indicates which functions are implemented in this Saxon release, and any restrictions in the current implementation.
It includes both the core functions defined in XPath 2.0, and the additional functions defined in the XSLT 2.0 specification.
Function signature
$srcval | numeric ? |
Result | numeric ? |
Implemented in 7.6.1.
Function signature
$srcval | xs:date ? |
Result | xs:date ? |
** Not yet implemented **
Function signature
$srcval | xs:date ? |
$timezone | xdt:dayTimeDuration |
Result | xs:date ? |
** Not yet implemented **
fn:adjust-dateTime-to-timezone
Function signature
$srcval | xs:dateTime ? |
Result | xs:dateTime ? |
** Not yet implemented **
fn:adjust-dateTime-to-timezone
Function signature
$srcval | xs:dateTime ? |
$timezone | xdt:dayTimeDuration |
Result | xs:dateTime ? |
** Not yet implemented **
Function signature
$srcval | xs:time ? |
Result | xs:time ? |
** Not yet implemented **
Function signature
$srcval | xs:time ? |
$timezone | xdt:dayTimeDuration |
Result | xs:time ? |
** Not yet implemented **
Function signature
$srcval | xdt:anyAtomicType * |
Result | xdt:anyAtomicType ? |
Implemented. Changed in 7.4 to return the same type as the argument, when appropriate. (For a set of integers, the result is a double). Not yet implemented for other addable types, e.g. duration.
Function signature
Result | xs:string ? |
Function signature
$srcval | node() |
Result | xs:string ? |
Function signature
$srcval | item() * |
Result | xs:boolean |
Function signature
$srcval | numeric ? |
Result | numeric ? |
Implemented. Changed in 7.4 to return the same type as the supplied argument.
Function signature
$codes | xs:integer * |
Result | xs:string |
Implemented. The error checking is incomplete (there is no check that the integers in the supplied sequence are legal XML characters).
Function signature
$srcval | xs:string |
Result | node() * |
Implemented. In the Saxon implementation, the argument is interpreted as the URI
of an XML catalogue document containing the URIs of the documents that make up the collection. An
example of a catalogue is:
<collection>
<doc href="doc1.xml"/>
<doc href="doc2.xml"/>
<doc href="doc3.xml"/>
</collection>
Function signature
$comparand1 | xs:string ? |
$comparand2 | xs:string ? |
Result | xs:integer ? |
Function signature
$comparand1 | xs:string ? |
$comparand2 | xs:string ? |
$collationLiteral | xs:string |
Result | xs:integer ? |
Function signature
$arg1 | xs:string |
Result | xs:string |
Function signature
$operand1 | xs:string ? |
$operand2 | xs:string ? |
Result | xs:boolean ? |
Function signature
$operand1 | xs:string ? |
$operand2 | xs:string ? |
$collationLiteral | xs:string |
Result | xs:boolean ? |
Function signature
Result | item() ? |
Function signature
$srcval | item() * |
Result | xs:integer |
Function signature
Result | item() ? |
Function signature
Result | xs:date |
Function signature
Result | xs:dateTime |
Function signature
Result | item() * |
xsl:for-each-group
Function signature
Result | xdt:anyAtomicType |
xsl:for-each-group
Implemented in Saxon 7.6.5
Function signature
Result | xs:time |
Function signature
$srcval | item() * |
Result | xdt:anyAtomicType * |
Function signature
$operand1 | item() * |
$operand2 | item() * |
Result | xs:boolean |
Function signature
$operand1 | item() * |
$operand2 | item() * |
$collation | string |
Result | xs:boolean |
Function signature
Result | xs:string |
Implemented. In Saxon this always returns a value: if no default collation has been specified explicitly, it returns the URI of the code-point collation. Note, the May 2003 draft still returns an anyURI, though elsewhere collations are now represented by a string.
Function signature
$srcval | node() * |
Result | node() * |
Function signature
$srcval | xdt:anyAtomicType * |
Result | xdt:anyAtomicType * |
Function signature
$srcval | xdt:anyAtomicType * |
$collation | string |
Result | xdt:anyAtomicType * |
Function signature
$uri | string ? |
Result | document-node() ? |
Implemented in Saxon 7.6
Function signature
$uri | item * |
Result | node() * |
Function signature
$uri | item * |
$base | node() * |
Result | node() * |
Note: Check the type of the second argument against the latest spec.
Function signature
$srcval | node() |
Result | string ? |
Note: The function is supported, though not strictly according to the spec. It is defined only for document nodes (as specified in the data model), and the URI returned is not guaranteed to be absolute, and is not guaranteed to be capable of retrieving the document using the document function (for example, a value is returned for a temporary tree).
Function signature
$element | xs:string |
Result | xs:boolean |
Function signature
$srcval | item() * |
Result | xs:boolean |
Function signature
$operand1 | xs:string ? |
$operand2 | xs:string ? |
Result | xs:boolean ? |
Function signature
$operand1 | xs:string ? |
$operand2 | xs:string ? |
$collationLiteral | xs:string |
Result | xs:boolean ? |
Function signature
Result |
Function signature
$srcval | item() ? |
Result |
Function signature
$uri-part | xs:string |
$escape-reserved | xs:boolean |
Result | string |
Function signature
$srcval | item() * |
Result | item() ? |
Function signature
$srcval | item() * |
Result | xs:boolean |
Function signature
$paramURI | xs:string |
$paramLocal | xs:string |
Result | xs:QName |
Function signature
Result | xs:boolean |
Function signature
$srcval | numeric ? |
Result | numeric ? |
Implemented. Changed in 7.4 to return the same type as the supplied argument.
Function signature
$value | xs:date ? |
$picture | xs:string |
$date-format-name | xs:string |
Result | xs:string |
Supported with limitations. The third argument is ignored, the function always formats the date for the current locale.
Function signature
$value | xs:date ? |
$picture | xs:string |
Result | xs:string |
Supported with limitations. The function always formats the date for the current locale.
Function signature
$value | xs:dateTime ? |
$picture | xs:string |
$date-format-name | xs:string |
Result | xs:string |
Supported with limitations. The third argument is ignored, the function always formats the date for the current locale.
Function signature
$value | xs:dateTime ? |
$picture | xs:string |
Result | xs:string |
Supported with limitations. The function always formats the date for the current locale.
Function signature
$value | xs:double |
$picture | xs:string |
Result | xs:string |
Implemented. Changed in 7.4.1 to use the new XSLT 2.0 specification. This creates slight incompatibilities from the previous version, which remains available under the name format-number-1.0(). There is one known restriction: characters such as the decimal-separator are restricted to be in the Unicode BMP, i.e. below Unicode 0xFFFF. The current implementation does not attempt to cache or precompile the picture string. Also it does not detect the error that occurs when the same character is used in more than one role. Error checking has not been thoroughly tested.
Function signature
$value | xs:double |
$picture | xs:string |
$decimal-format | xs:string |
Result | xs:string |
See two-argument version of format-number().
Function signature
$value | xs:time ? |
$picture | xs:string |
$date-format-name | xs:string |
Result | xs:string |
Supported with limitations. The third argument is ignored, the function always formats the time for the current locale.
Function signature
$value | xs:time ? |
$picture | xs:string |
Result | xs:string |
Supported with limitations. The function always formats the date for the current locale.
Function signature
$function | xs:string |
Result | xs:boolean |
Function signature
Result | xs:string |
Function signature
$srcval | node() ? |
Result | xs:string |
Function signature
$srcval | xs:date ? |
Result | xs:integer ? |
Function signature
$srcval | xs:dateTime ? |
Result | xs:integer ? |
fn:get-days-from-dayTimeDuration
Function signature
$srcval | xdt:dayTimeDuration ? |
Result | xs:integer ? |
Function signature
$srcval | xs:dateTime ? |
Result | xs:integer ? |
fn:get-hours-from-dayTimeDuration
Function signature
$srcval | xdt:dayTimeDuration ? |
Result | xs:integer ? |
Function signature
$srcval | xs:time ? |
Result | xs:integer ? |
Function signature
$element | element() |
Result | xs:string * |
Implemented. Check signature.
Function signature
$srcval | xs:QName ? |
Result | string ? |
Function signature
$srcval | xs:dateTime ? |
Result | xs:integer ? |
fn:get-minutes-from-dayTimeDuration
Function signature
$srcval | xdt:dayTimeDuration ? |
Result | xs:integer ? |
Function signature
$srcval | xs:time ? |
Result | xs:integer ? |
Function signature
$srcval | xs:date ? |
Result | xs:integer ? |
Function signature
$srcval | xs:dateTime ? |
Result | xs:integer ? |
fn:get-months-from-yearMonthDuration
Function signature
$srcval | xdt:yearMonthDuration ? |
Result | xs:integer ? |
Function signature
$srcval | xs:QName ? |
Result | string ? |
fn:get-namespace-uri-for-prefix
Function signature
$element | element() |
$prefix | xs:string ? |
Result | string ? |
Implemented.
Function signature
$srcval | xs:dateTime ? |
Result | xs:integer ? |
fn:get-seconds-from-dayTimeDuration
Function signature
$srcval | xdt:dayTimeDuration ? |
Result | xs:integer ? |
Implemented. Return type should be decimal, not integer.
Function signature
$srcval | xs:time ? |
Result | xs:integer ? |
Function signature
$srcval | xs:date ? |
Result | xdt:dayTimeDuration ? |
Implemented. Return type should be dayTimeDuration not string
Function signature
$srcval | xs:dateTime ? |
Result | xdt:dayTimeDuration ? |
Implemented. Return type should be dayTimeDuration not string
Function signature
$srcval | xs:time ? |
Result | xdt:dayTimeDuration ? |
Implemented. Return type should be dayTimeDuration not string
Function signature
$srcval | xs:date ? |
Result | xs:integer ? |
Function signature
$srcval | xs:dateTime ? |
Result | xs:integer ? |
fn:get-years-from-yearMonthDuration
Function signature
$srcval | xdt:yearMonthDuration ? |
Result | xs:integer ? |
Function signature
$srcval | xs:string * |
Result | element() * |
Note: Implemented according to the XPath 1.0 specification
Function signature
$srcval | xs:string * |
Result | node() * |
** Not yet implemented **
Function signature
Result | xdt:dayTimeDuration |
** Not yet implemented **
Function signature
$seqParam | xdt:anyAtomicType * |
$srchParam | xdt:anyAtomicType |
Result | xs:integer * |
Implemented. Check the signature.
Function signature
$seqParam | xdt:anyAtomicType * |
$srchParam | xdt:anyAtomicType |
$collation | xs:string |
Result | xs:integer * |
Implemented. Check the signature.
Function signature
Result | node() * |
Note: This implementation of the input() function is very simple. If the parameter {http://saxon.sf.net/}input has been supplied to the transformation, the function returns the value of this parameter. This must be a node sequence - which means it cannot be supplied from the command line. If no such parameter has been supplied, it returns the root of the principal source document (the document containing the node that was matched on entry to the transformation).
Function signature
$target | item() * |
$position | xs:integer |
$inserts | item() * |
Result | item() * |
Implemented. Changed in 7.4 to reflect the latest WD which changes the name from insert to insert-before, and inserts the new items before the selected position, not after it as previously. Check the signature.
Function signature
$seqParam | item() * |
$posParam | xs:integer |
Result | item() ? |
Implemented. Check the signature.
Note: Currently returns an empty sequence rather than raising an error if the index is out of range
Function signature
$key-name | xs:string |
$key-value | xdt:anyAtomicType * |
Result | node() * |
Function signature
$testlang | xs:string * |
Result | xs:boolean |
Function signature
Result | xs:integer |
Function signature
Result | xs:string |
Function signature
$srcval | node() ? |
Result | xs:string |
Function signature
$srcval | xs:string ? |
Result | xs:string ? |
Function signature
$input | xs:string ? |
$pattern | xs:string |
Result | xs:boolean ? |
Note: The regular expression syntax supported in Saxon is that of JDK 1.4.
Function signature
$input | xs:string ? |
$pattern | xs:string |
$flags | xs:string |
Result | xs:boolean ? |
Note: The regular expression syntax supported in Saxon is that of JDK 1.4. The "i" flag (for case insensitive matching) is supported from Saxon 7.4.1.
Function signature
$srcval | xdt:anyAtomicType * |
Result | xdt:anyAtomicType ? |
Implemented. Changed in 7.4 to support any comparable type. Check the signature
Function signature
$srcval | xdt:anyAtomicType * |
$collationLiteral | xs:string |
Result | xdt:anyAtomicType ? |
Implemented in 7.4
Function signature
$srcval | xdt:anyAtomicType * |
Result | xdt:anyAtomicType ? |
Implemented. Changed in 7.4 to support any comparable type
Function signature
$srcval | xdt:anyAtomicType * |
$collationLiteral | xs:string |
Result | xdt:anyAtomicType ? |
Implemented in 7.4
Function signature
Result | xs:string |
Function signature
$srcval | node() ? |
Result | xs:string |
Function signature
Result | xs:string |
Function signature
$srcval | node() ? |
Result | xs:string |
Function signature
$srcval | node() |
Result | xs:string |
Function signature
$srcval | node() |
Result | xs:QName ? |
Function signature
Result | xs:string ? |
Function signature
$srcval | xs:string ? |
Result | xs:string ? |
Function signature
$srcval | xs:string ? |
Result | xs:string ? |
** Not yet implemented **
Function signature
$srcval | xs:string ? |
$normalizationForm | xs:string |
Result | xs:string ? |
** Not yet implemented **
Function signature
$srcval | item() * |
Result | xs:boolean |
Function signature
Result | xs:double |
Note: Saxon 7.4 implements some incompatible changes to this function defined in XPath 2.0. When given an empty sequence as the argument, the number function now returns an empty sequence, rather than NaN. When given a value that is not a valid number, it raises an error rather than returning NaN. The strings "INF" and "-INF" are recognized as representations of positive and negative infinity.
Function signature
$srcval | item() ? |
Result | xs:double |
Note: Implementation follows the XPath 1.0 specification. Changed in 7.4 so that if the argument is the empty sequence, the result is the empty sequence - this causes some backwards compatibility problems.
Function signature
$srcval | item() * |
Result | item() ? |
Function signature
Result | xs:integer |
Function signature
$groupNumber | xs:integer |
Result | xs:string |
xsl:analyze-string
Function signature
$target | item() * |
$position | xs:integer |
Result | item() * |
Function signature
$input | xs:string ? |
$pattern | xs:string |
$replacement | xs:string |
Result | xs:string ? |
Note: The regular expression syntax supported in Saxon is that of JDK 1.4.
Function signature
$input | xs:string ? |
$pattern | xs:string |
$replacement | xs:string |
$flags | xs:string |
Result | xs:string ? |
Note: The regular expression syntax supported in Saxon is that of JDK 1.4. The "i" flag (for case insensitive matching) is supported from Saxon 7.4.1.
Function signature
$qname | xs:string |
$element | element() |
Result | xs:QName |
Function signature
$relative | xs:string |
Result | xs:string |
Function signature
$relative | xs:string |
$base | xs:string |
Result | xs:string |
Note: Current WD still describes the second argument as having type xs:anyURI
Function signature
Result | node() |
Function signature
$srcval | node() |
Result | node() |
Function signature
$srcval | numeric ? |
Result | numeric ? |
Implemented. Changed in 7.4 to return the same type as the supplied argument.
Function signature
$srcval | numeric ? |
Result | numeric ? |
Function signature
$srcval | numeric ? |
$precision | xs:integer |
Result | numeric ? |
Note: In the case of doubles and floats, rounding errors may occur giving unexpected effects.
Function signature
$parameter1 | node() * |
$parameter2 | node() * |
Result | xs:boolean ? |
Function signature
$input-sequence | item() * |
$sort-spec-name | xs:string |
Result | item() * |
xsl:sort-key
declaration
in the stylesheet
Function signature
$operand1 | xs:string ? |
$operand2 | xs:string ? |
Result | xs:boolean ? |
Function signature
$operand1 | xs:string ? |
$operand2 | xs:string ? |
$collationLiteral | xs:string |
Result | xs:boolean ? |
Function signature
Result | xs:string |
Function signature
$srcval | item() ? |
Result | xs:string |
Function signature
$sequence | xs:string * |
$separator | xs:string |
Result | xs:string |
Function signature
Result | xs:integer ? |
Function signature
$srcval | xs:string ? |
Result | xs:integer ? |
Function signature
$padString | xs:string ? |
$padCount | xs:integer |
Result | xs:string ? |
Function signature
$srcval | xs:string |
Result | xs:integer * |
Function signature
$sourceSeq | item() * |
$startingLoc | xs:double |
Result | item() * |
Implemented, currently requires integer argument
Note: Non-integer values, negative values etc for the second argument may not work as defined in the XPath specification.
Function signature
$sourceSeq | item() * |
$startingLoc | xs:double |
$length | xs:double |
Result | item() * |
Implemented, currently requires integer arguments
Note: Non-integer values, negative values etc for the second or third argument may not work as defined in the XPath specification.
Function signature
$sourceString | xs:string ? |
$startingLoc | xs:double |
Result | xs:string ? |
Function signature
$sourceString | xs:string ? |
$startingLoc | xs:double |
$length | xs:double |
Result | xs:string ? |
Function signature
$operand1 | xs:string ? |
$operand2 | xs:string ? |
Result | xs:string ? |
Function signature
$operand1 | xs:string ? |
$operand2 | xs:string ? |
$collation | xs:string |
Result | xs:string ? |
Function signature
$operand1 | xs:string ? |
$operand2 | xs:string ? |
Result | xs:string ? |
Function signature
$operand1 | xs:string ? |
$operand2 | xs:string ? |
$collation | xs:string |
Result | xs:string ? |
fn:subtract-dateTimes-yielding-dayTimeDuration
Function signature
$operand1 | xs:dateTime ? |
$operand2 | xs:dateTime ? |
Result | xdt:dayTimeDuration ? |
** Not yet implemented **
fn:subtract-dateTimes-yielding-yearMonthDuration
Function signature
$operand1 | xs:dateTime ? |
$operand2 | xs:dateTime ? |
Result | xdt:yearMonthDuration ? |
** Not yet implemented **
Function signature
$srcval | xdt:anyAtomicType * |
Result | xdt:anyAtomicType ? |
Implemented. In 7.4, works on all numeric types and returns the same type as the arguments. Not implemented for other addable types, e.g. duration.
Function signature
$propertyName | xs:string |
Result | xs:string |
Function signature
$input | xs:string ? |
$pattern | xs:string |
Result | xs:string * |
Implemented. The facility to split a string into its individual characters by supplying a regex that matches a zero-length string is newly implemented in Saxon 7.7.
Note: The regular expression syntax supported in Saxon is that of JDK 1.4
Function signature
$input | xs:string ? |
$pattern | xs:string |
$flags | xs:string |
Result | xs:string *? |
Note: The regular expression syntax supported in Saxon is that of JDK 1.4. The "i" flag (for case insensitive matching) is supported from Saxon 7.4.1.
Function signature
$value | item() * |
$label | xs:string |
Result | item() * |
Note: The Saxon implementation outputs the value of each item in a sequence as it is evaluated (except when the sequence is empty, in which case it outputs "empty sequence" at the start). Atomic values are output by converting them to a string, nodes by calling getPath() to generate a path expression to the node. With complex expressions the order of evaluation may be rather different from the expected order. The trace output is directed to System.err, this may be redirected by using "2>log.txt" on the command line.
Function signature
$srcval | xs:string ? |
$mapString | xs:string ? |
$transString | xs:string ? |
Result | xs:string ? |
Function signature
Result | xs:boolean |
Function signature
$srcval | xs:string |
Result | xs:string |
xslt:unparsed-entity-public-id
Function signature
$srcval | xs:string |
Result | xs:string |
Function signature
$uri | xs:string |
Result | xs:string |
Not implemented. The encoding parameter is currently mandatory.
Function signature
$uri | xs:string |
$encoding | xs:string |
Result | xs:string |
Implemented. Changed at 7.5 so it no longer processes multiple URIs ina single call.
Function signature
$sequence | item() * |
Result | item() * |
Note: In practice the only important case where this function has any effect in the Saxon implementation is where the sequence supplied as argument is a Step using a reverse axis: for example, unordered(ancestor::*) returns the ancestors in reverse document order. But applications should not rely on the actual order; the function is intended to be used by applications that do not care about the order of the results.
Function signature
$srcval | xs:string ? |
Result | xs:string ? |
Function signature
$srcval | item() * |
Result | item() ? |
Michael H. Kay
20 May 2003