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:last-modified()

saxon:last-modified() ==> xs:dateTime?

saxon:last-modified(node()) ==> xs:dateTime?

This function returns the date/time when the file from which the given node (or the context node, if the argument is omitted) was modified. It returns the empty sequence if the information is not available, or if any errors occur.

To get diagnostics in the event of an error, set the -TJ option on the command line or the TRACE_EXTERNAL_FUNCTIONS configuration option.

Example:

    format-dateTime(last-modified())

See also file-last-modified()

Next