Skip to content
Instructions

XSLT Instructions

Reference for the XSLT instructions implemented by goxslt. Each instruction has its own page with attributes, a minimal example, and additional examples where helpful.

Templates

Control flow

  • xsl:if — conditional execution
  • xsl:choose — multi-branch conditional (with xsl:when / xsl:otherwise)
  • xsl:for-each — iterate over a sequence
  • xsl:for-each-group — group and iterate
  • xsl:iterate — loop with accumulating parameters (with xsl:break, xsl:next-iteration, xsl:on-completion)
  • xsl:try — catch dynamic errors (with xsl:catch)

Variables and parameters

Result tree construction

Sorting and grouping

Strings and numbers

Output

Maps

  • xsl:map — construct an XPath map (with xsl:map-entry)

Stylesheet structure