XSLT logo

XSL Transformations

CategoryData Transformation Standards

XSL Transformations (XSLT) 3.0 is a language created by the World Wide Web Consortium (W3C) for transforming XML documents into target formats, such as XML, HTML, JSON or plain text. It is designed to be used in conjunction with XPath 3.0, an XML node query language.


Specification


Pattern Matching Processor


Template-based Document Transformation

XSLT 3.0 specification defines the syntax and semantics of a template-based language designed for transforming XML documents into target XML and other formats.

XSLT language shares the same data model as XPath, uses the library of functions and operators, and includes facilities to serialize the results of a transformation.

A transformation in the XSLT language is expressed in the form of a stylesheet — one or more well-formed XML documents with qualified namespaces. The transformation is achieved by a set of template rules — associations between a pattern, which typically matches nodes in the source document, with a sequence constructor.

A stylesheet can make use of data types defined inline, or in an external XML Schema. The specification also defines a mapping from JSON to XML, allowing JSON source documents to be processed using XSLT template rules. The json-to-xml function converts JSON data to XML, and two stylesheet modules perform the reverse transformation.

XSLT standard