Search code examples
xmldebuggingxslt

Tools for debugging xslt


I have a Java servlet which generates XML, translates it with an XSLT stylesheet, and then displays the resulting HTML. This is the first time I've worked with XSLT. What's a good way to debug XSLT? I have (or can get) some sample XML files to apply the transform too. But I'm not really even sure of the syntax so something that would give me syntax warnings would be great.


Solution

  • Xalan should give you useful errors when you try to use an invalid XSLT. If you want something more powerful, one option for debugging XSLT is Oxygen XML Editor. It is integrated with Xalan and Saxon transform engines. Its debugging mode allows you to set breakpoints, watch variables, and provides other such basic debugging functionality. It may be overkill for you want, but it's very good.