Modules | Implementer Page: date.html EXSLT - Dates and Times covers date and time-related extension elements and functions. Many of the functions in this module use strings in the formats specified by the date and time-related data types defined in [XML Schema Part 2: Datatypes]. XSLT processors may support any number of the extension elements and functions given in this module. Using EXSLT will only make your stylesheet portable amongst the implementations that support EXSLT. Note that there is no requirement for XSLT processors that are compliant to XSLT to support the extensions described within EXSLT. NamespaceThe namespace for EXSLT - Dates and Times is: http://exslt.org/dates-and-times
Throughout this document, the prefix To use these extensions, you need to declare this namespace as an extension namespace in your stylesheet. If your processor supports this module, then that's all you need to do, but if it doesn't, then you need to use a specific third-party implementation or the module stylesheet. Typically, your stylesheet will look like: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date"> <xsl:import href="date.xsl" /> ... </xsl:stylesheet> ElementsOther ElementsThe following extension elements are not considered stable and are not part of the core of EXSLT - Dates and Times. Processors that claim support of EXSLT - Dates and Times might not support these elements.
FunctionsCore FunctionsThe following extension functions are considered stable and are core to EXSLT - Dates and Times. Processors that claim support of EXSLT - Dates and Times support these functions. Other FunctionsThe following extension functions are not considered stable and are not part of the core of EXSLT - Dates and Times. Processors that claim support of EXSLT - Dates and Times might not support these functions.
|
http://www.exslt.org/date/index.html last modified 2001-05-12