tags:

views:

2731

answers:

11
+3  Q: 

XSLT Tester

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.. (:

A: 

Altova's XMLSpy is very good choice for testing XSLT transformations

Roman Kagan
I agree, but it is neither online nor free
Rob
+8  A: 

w3c's Servlet

W3Schools tutorial..

John Weldon
link works, but the processor seems to be absent.
Rob
Which processor?
John Weldon
Online XSLT processor. at least in FF 3.0.11 and IE8
Rob
Ah, sorry :) removed that link.
John Weldon
not exactly what i wanted, but it'll work.. I'd like to able to enter text on the site, but this is probably the closest i'll get..
Rob
A: 

I'm still loyal to my XML Cooktop though it's definitely a ghetto option

annakata
+3  A: 

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"?>
John Nicholas
This is what i was doing previously. not my ideal solution, but it'll work for now..
Rob
+1  A: 

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

marc_s
A: 

I use the firefox addon XPather.

Dolphin
+3  A: 

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.

Dan Midwood
Ohh, thanks for that. A great tool, first one I've seen with a live debug!
wonea
A: 

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

Nat
+3  A: 

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.

Mads Hansen
A: 

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.

Daniel Perez Alvarez
A: 

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.

pgfearo