SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Conditions of Use
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:generate-id()

saxon:generate-id($node as node()) => xs:string

This function returns a string that acts as a unique identifier for the supplied node. The identifier will always consist of ASCII letters and digits and will start with a letter.

The function is identical to the XSLT generate-id() function. It is provided as an extension function in the Saxon namespace to make it available in contexts other than XSLT, for example in XQuery.

Next