GingerHead
GingerHead

Reputation: 8240

How to check XSLT errors

I have XSLT and XMl files to treat.

I need to know how to detect the following errors in large XSLT files (listed by the order of priority):

  1. Xpath errors
  2. Tag errors
  3. Syntax errors

Is there a tool that can do all these on Windows plaform?

Upvotes: 2

Views: 4045

Answers (3)

Michael Kay
Michael Kay

Reputation: 163595

Any XSLT processor will do this. Saxon's diagnostics are probably better than most, though I say it myself. An IDE such as Oxygen or Stylus Studio is useful (both have Saxon under the hood), because the error messages will take you straight to the offending code. You don't say whether you want XSLT 1.0 or XSLT 2.0.

Upvotes: 3

Pierre
Pierre

Reputation: 35306

xsltproc ? of course, it depends of the size of your xml/xsl.

xsltproc --noout input.xsl input.xml

Upvotes: 1

Ruser1510890
Ruser1510890

Reputation: 66

You can use altova xml spy. Its a shareware not a freeware. However, you can use this as a trial version.

Upvotes: 1

Related Questions