TanodTools
EN

Open an XML file with its stylesheet

Apply an XSLT 1.0 stylesheet to an XML file locally and read, save or print the result. Scripts never run; XSLT 2.0 and 3.0 are not supported.

Your files never leave your device

Drop an XML file and its stylesheet, or their folder

An XML file up to 25 MB and a .xsl or .xslt stylesheet up to 5 MB. Choose the folder when the stylesheet includes or imports other files.

Read on this device. Nothing is uploaded.

One XML file up to 25 MB and one stylesheet up to 5 MB. Files the stylesheet loads count up to 25 MB each and 100 MB in all, and a folder can hold up to 20,000 files. XSLT 1.0 only. A run stops after 10 seconds.

View an XML file with its stylesheet

  1. Choose the XML file and its .xsl or .xslt stylesheet. If the stylesheet includes or imports other files, choose the folder they are all in.
  2. Check which XML file and stylesheet are used. When the XML file names its stylesheet in an xml-stylesheet line and you picked that file, it is chosen for you.
  3. Read the result below the files. Download HTML saves it as a page; open that file in your browser and press Ctrl+P to print it or save it as a PDF.

Why XML files need this now

Chrome 158 removed the browser's built-in XSLT, so an XML file that names a stylesheet, such as a feed, a sitemap or an exported report, now opens as raw markup instead of the page it was meant to be. This tool runs the stylesheet with libxslt, the XSLT 1.0 library Chrome used, built to WebAssembly and loaded from this site.

What it cannot do

XSLT 2.0 and 3.0 do not run, and stylesheet parameters cannot be set. Scripts in the result never run. Remote images, style sheets, fonts and frames are not loaded; the page counts what it left out, for example 3 remote images. Links are shown but do not open from the result. An include, import or document() call finds only files you picked, by their place in the picked folder; anything else is reported as not found.

Printing and saving

Download HTML saves the result as a page with the same rules: no scripts, and nothing from the network. Open the saved file in your browser and press Ctrl+P (⌘P on a Mac), then choose Save as PDF to keep it as a PDF. A text result downloads as a .txt file and an XML result as a .xml file.

The engine is xslt-polyfill 1.0.36 (libxslt, libexslt and libxml2 under the MIT licence, the build under BSD-3-Clause), used unchanged. These tools are open source (MIT).

Questions

What is the xml-stylesheet line?

It is a line at the top of an XML file, such as <?xml-stylesheet type="text/xsl" href="report.xsl"?>, that tells a browser which stylesheet to show the file with. This page reads it, says which file it asks for and uses that file when you picked it. It never fetches the stylesheet from the web: save a copy and pick it with the XML file.

Which XSLT versions work?

XSLT 1.0 with the EXSLT extensions, as browsers had. XSLT 2.0 and 3.0 do not run here. An XSLT 1.0 processor skips instructions it does not know, so a 2.0 or 3.0 stylesheet can give an empty or partial result; the page warns when a stylesheet declares one of those versions. For them, use a processor such as Saxon.

Is it safe to open files I don't trust?

The stylesheet runs in a separate worker that can read only the files you picked and cannot make requests. Before the result is shown, scripts, event handlers, refreshes, frames and links to remote files are taken out. It is then shown in a sandboxed frame that cannot run scripts or reach this page, and its policy refuses anything left that would load. Links are shown but do not open.

Are my files uploaded?

No. The files are read in this tab, and nothing about them is sent to Tanod or anyone else. Once the page has loaded, using the tool makes no requests. If a run is cut short, by the time limit or by a new choice, the engine is loaded again from this site, which sends none of your data. Clear removes the result; closing the tab releases the memory.