Miscellaneous Additional Functions

[Example 56] <C>

The current function returns a node-set that has the current node as its only member. For an outermost expression (an expression not occurring within another expression), the current node is always the same as the context node. However, within square brackets the current node is usually different from the context node.

[Example 57] <C>

Function generate-id generates id conforming to XML spec. This stylesheet uses this function to add id to all elements in source XML.