Skip to content
uencoder

XSLT

XSLT (Extensible Stylesheet Language Transformations) converts XML documents into other XML/HTML/text through declarative transformation rules written in XML.

Purpose

To transform XML into target formats with declarative template rules, used for XML publishing, report generation, and format migration.

Mechanism

An XSLT stylesheet contains <xsl:template match="pattern"> templates; the processor matches templates against source XML nodes and executes instructions such as <xsl:value-of>, <xsl:for-each>, and <xsl:apply-templates> to generate output.

Use cases

  • Publishing XML as HTML
  • XML data transformation
  • DocBook to PDF

Related tools

References