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

# Extension attributes (XSLT only)

An extension attribute is an extra attribute on an XSLT-defined element. Following the rules of XSLT, such attributes must be in a non-default namespace. For Saxon extension elements, the namespace must be the Saxon namespace URI "http://saxon.sf.net/"

For example, the `saxon:assignable` attribute can be set as follows:

    <xsl:variable name="counter" saxon:assignable="yes"
        xmlns:saxon="http://saxon.sf.net/">

The extension attributes provided with the Saxon product are as follows:

- saxon:allow-all-built-in-types: allows a stylesheet running under Saxon-B to use types such as xs:int

- saxon:assignable: marks a variable as updateable

- saxon:explain: requests display of optimized expression tree

- saxon:memo-function: marks a function as a memo function

- saxon:read-once: enables serial processing of source documents

Next