does anyone know of an online XSLT tester.. i.e. you provide the xml/xslt and it tells you the output... I know i could write one, but i'd like a solution that i have to write and that is available online.. (:
Altova's XMLSpy is very good choice for testing XSLT transformations
I'm still loyal to my XML Cooktop though it's definitely a ghetto option
One thing to consider is that different implementations of XSLT differ in functionality.
EG microsoft only does xsl 1.0 with limited support for xpath also
(which falls into 'teh suk' category for me)
One simple way to test an XSLT is to simply add a reference to it in the xml file just after the declaration - of course you need the xml to do this .. but if you want a web solution i guess this is not a problem.
eg
<?xml-stylesheet type="text/xsl" href="email.xslt"?>
I really like the XSLToys - a shell extension which allows me to right-click on a XML file, pick a XSLT and then see the results in MS IE. Very handy in my opinion.
XSLToys is available for download from: http://support.docsoft.com/
Marc
It's not online but I use XSelerator with my xslt.
It defaults to Microsoft's MSXML engine but can be setup to use others.
Why does it have to be online? There are plenty of free XSLT implementations that you can run from the command line (and therefore within your favourite editor, unless that happens to be Notepad.exe). I usually use xsltproc, because it's fast.9
w3schools hosts an XSLT test page where you can try out your XSLT online.
It has a textarea for the XML and a textarea for the XSTL. You can modify both and submit the form to see the transform results rendered below.
A simple XSLT tester applet (by me): http://unindented.org/projects/xslt-tester-applet/
You can also download the JAR and use it as a desktop app.
You won't need this if you're just doing the occasional test against a file or two, but if its a 'no holds barred', serious, bulk-repeatable, soak-testing kind of XSLT test tool you want:
CoherentWeb is a graphical interactive XSLT test application. Its file-handling features and multi-threaded processing makes it most suited to those who have a large collection of test-case files that they want to test simultaneously.
All test result messages and metrics are aggregated into a single XML report for further analysis. XSLT errors are also highlighted in an interactive file list combined with XPath-based in/out XML analysis tools and also a hosted Web browser for reviewing HTML/Office files. The included ISO Schematron implementation also helps with automated evaluation of your output against rules.
This is a commercial .NET applicaton supporting XSLT 1.0 or 2.0 (with Saxon-PE 9.2 included), its not online but can be quickly downloaded and installed from a single 11MB .exe file.