EXSLT - Common

Implementer Page: exsl.html
Module Package: exsl.zip

EXSLT - Common covers common, basic extension elements and functions.

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.

Namespace

The namespace for EXSLT - Common is:

http://exslt.org/common

Throughout this document, the prefix exsl is used to refer to this namespace. Any other prefix can be used within a particular stylesheet (though a prefix must be specified to enable the extension functions to be recognised as extensions).

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:exsl="http://exslt.org/common"
                extension-element-prefixes="exsl">

<xsl:import href="exsl.xsl" />

...
              
</xsl:stylesheet>

Elements

Other Elements

The following extension elements are not considered stable and are not part of the core of EXSLT - Common. Processors that claim support of EXSLT - Common might not support these elements.

ElementSyntaxDownload
exsl:document
<exsl:document
   href = { uri-reference }
   method = { "xml" | "html" | "text" | qname-but-not-ncname }
   version = { nmtoken }
   encoding = { string }
   omit-xml-declaration = { "yes" | "no" }
   standalone = { "yes" | "no" }
   doctype-public = { string }
   doctype-system = { string }
   cdata-section-elements = { qnames }
   indent = { "yes" | "no" }
   media-type = { string }>
   <-- Content: template -->
</exsl:document>
exsl.document.zip

Functions

Core Functions

The following extension functions are considered stable and are core to EXSLT - Common. Processors that claim support of EXSLT - Common support these functions.

FunctionSyntaxDownload
exsl:node-setnode-set exsl:node-set(object)-
exsl:object-typestring exsl:object-type(object)-

http://www.exslt.org/exsl/index.html last modified 2001-05-22