The XSLT Functions

The following list includes, in overview, the functions built into XSLT:

  • current(). Returns the current node—not the context node. The current node is the present node in loops such as <xsl:for-each>. You cannot use current in patterns.

  • document(). Enables you to read in multiple documents.

  • element-available(). Indicates whether an extension element is available.

  • format-number(). Formats numbers for display.

  • function-available(). Indicates whether an extension function is available.

  • generate-id(). Causes the XSLT processor to assign and return an identifier to a node. When you call generate-id again on the same node, this function returns the previously assigned identifier.

  • key(). Enables you to search by key.

  • system-property()

Get Inside XSLT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.