XSLT Transformer
This XSLT transformer applies a stylesheet to an XML document and shows the result. XSLT transforms one document into another format using template rules, and it remains the standard way to turn a SOAP response, an RSS feed or a configuration export into HTML or into a different schema entirely. It uses the browser own XSLT 1.0 processor, which is what browsers implement — versions 2.0 and 3.0 exist but require a separate engine, so stylesheets relying on their features will not run here. Both documents are validated before the transformation, so a parse error is reported against the right one rather than as a mysterious failure.
How it works
XSLT transforms one XML document into another format using a stylesheet of template rules. It is still the standard way to turn a SOAP response, an RSS feed or a config export into HTML or into a different schema.
This uses the browser's own XSLT 1.0 processor. Version 1.0 is what browsers implement — 2.0 and 3.0 exist but need a separate engine, so stylesheets using their features will not run here.
Everything runs in your browser — nothing you paste is sent to a server.
How a stylesheet works
XSLT is declarative. Rather than writing steps, you write template rules that say "when you encounter this kind of node, produce this output", and the processor walks the document applying them.
A minimal stylesheet has one template matching the root:
<xsl:template match="/">
<xsl:for-each select="catalog/book">
<xsl:value-of select="title"/>
</xsl:for-each>
</xsl:template> Version 1.0 is the practical version
XSLT 2.0 and 3.0 add genuinely useful things — regular expressions, grouping, functions — but no browser implements them, and neither do many server-side libraries. Version 1.0 is what runs almost everywhere, which is why it is still what most stylesheets in production target.
Common uses
- Rendering an RSS or Atom feed as a web page.
- Reshaping a SOAP response into a different schema.
- Generating a report from an XML export.
- Converting between two XML dialects.
Frequently asked questions
How do I run an XSLT transformation?
Paste your XML in the first panel and your stylesheet in the second. The transformed output appears below.
Which XSLT version is supported?
XSLT 1.0, which is what browsers implement natively. Stylesheets using 2.0 or 3.0 features will not run without a separate engine.
What can XSLT do?
Reshape a document into another schema, generate HTML from data, filter and sort elements, and compute values. It is a full transformation language, not just a template system.
Why does my transformation produce nothing?
Usually because no template matches the source. A stylesheet needs at least one template whose match pattern reaches the document — start with match="/".
Can I transform to plain text or JSON?
Yes. Set the output method to text in your stylesheet and you can generate any text format, including JSON.
Is my data uploaded?
No. The transformation runs in your browser using its built-in processor.
Related tools
XPath Tester
This XPath tester evaluates an expression against your XML using the browser engine.
XML Formatter & Beautifier
This XML formatter re-indents minified or messy XML while preserving comments and CDATA.
XML to JSON Converter
This XML to JSON converter parses XML into JSON online, preserving attributes and repeated tags as arrays.