Skip to main content

XSL Transformer

API reference

Apply an XSLT 1.0 stylesheet to an XML document and get the transformed output (XML, HTML or text). Runs in your browser; supports templates, for-each, sort, choose and more.

Input

Output

Transformed Output
Was this helpful?

More ways to use this tool

REST API

curl -X POST https://api.iotools.cloud/v1/tool/xsl-transformer \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "xmlSource": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<catalog>…",
    "xslSource": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xsl:styl…"
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `xsl-transformer` tool (XSL Transformer) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Embed widget

<iframe
  src="https://iotools.cloud/embed/xsl-transformer/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="XSL Transformer — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

Drop this into your own page — free, no key required, just a link back.

Cost per API/MCP callFrom 5 credits
Need more credits?View pricing

Also available with

Guides

Paste an XML document and an XSLT stylesheet, and get the transformed result — HTML, XML or plain text. The transform runs in your browser with no upload and no sign-up.

How to use it

  1. Paste your XML into the first box.
  2. Paste your <xsl:stylesheet> into the second box.
  3. Run the transform, then copy or download the output.

Which XSLT features are supported?

XSLT 1.0 with XPath 1.0: xsl:template, xsl:apply-templates, xsl:for-each, xsl:sort, xsl:if, xsl:choose, xsl:value-of, xsl:variable, xsl:param, xsl:attribute and the usual XPath functions. XSLT 2.0/3.0 features and extension functions are not available.

What if my XML or stylesheet is invalid?

Both inputs are checked for well-formedness first, and you get a specific error (mismatched or unclosed tag, missing root) instead of an empty result.

xsltstylesheetxml transformxsltemplate

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.