Canonical: https://toolipedia.app/xslt-tester

# XSLT Tester

Apply an XSLT 1.0 stylesheet to an XML document in your browser and see the transformed output, xsl:message text and clear error messages when the stylesheet cannot run.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > XSLT Tester

## About XSLT Tester

Browsers have removed their built-in XSLT engine, so this tester carries its own XSLT 1.0 interpreter written in JavaScript on top of a full XPath 1.0 evaluator. It handles templates with match, mode, priority and parameters, apply-templates, call-template, for-each with sorting, if and choose, variables, copy and copy-of, element and attribute construction, attribute value templates, key(), format-number() and xsl:message. The result is shown as XML, HTML or text depending on xsl:output. XSLT 2.0 and 3.0 features, xsl:import and document() are not available.

## How to use XSLT Tester
1. Paste the XML document into the first box and the stylesheet that starts with xsl:stylesheet into the second.
2. Choose whether the result should follow xsl:output indentation, be indented or stay compact.
3. Read the output, check the xsl:message table and fix any error the page reports.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- xslt tester
- xslt online
- test xslt stylesheet
- xml xslt transform online
- xslt 1.0 transformation viewer

## Frequently asked questions

### Which XSLT version does this tester run?

XSLT 1.0 with XPath 1.0, the version that browsers and libxslt used. Features from 2.0 and 3.0, such as xsl:for-each-group, sequences and regular expressions, give a clear error message.

### Why not use the XSLT engine built into the browser?

Current browsers no longer ship one, so a page that depended on it would show nothing. The interpreter here runs the same way on every modern browser and keeps your data on your device.

### Why does my output contain extra blank lines or spaces?

XSLT keeps whitespace text from the source XML unless you strip it. Add xsl:strip-space elements with a star to remove blank text nodes, or use xsl:text to control spacing.

### Is XSLT Tester free?

Yes. XSLT Tester on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with XSLT Tester:
- [XML Workbench: XPath Tester and Attribute Cleaner](https://toolipedia.app/xml-workbench)
- [CSS colour extractor](https://toolipedia.app/css-color-extractor)
- [jq Filter Playground](https://toolipedia.app/jq-filter-playground)
- [SAML Message Decoder](https://toolipedia.app/saml-message-decoder)
- [JSONPath tester](https://toolipedia.app/jsonpath-tester)
