Where can I find static/dynamic code analysis tool

2019-04-06 12:51发布

问题:

Are there any static or dynamic code analysis tools that analyze XSLT/XSL code?

The resources I have been able to find so far are: 1. Oxygen xml editor 2. http://gandhimukul.tripod.com/xslt/xslquality.html which looks faily basic in its capabilities

回答1:

There are quite a few testing tools and verifiers at Tony Graham's XSLT Testing Tools page. If you haven't looked there, it's a fairly comprehensive list.

Using Saxon in schema-aware mode will catch many common errors.

You've already discovered Mukul Gandhi's XSL Quality tools, which support user-added extensions. On the xsl-list run by Mulberry Technologies a while back, several other people contributed ideas for new rules also. You might also get help asking there.

Stylus Studio, Oxygen and xmlspy have profilers for run-time performance.



回答2:

XML Spy includes an XSLT profiler. That should fulfil your dynamic analysis needs if you can afford it.

There is also StylusStudio, a plugin for VisualStudio and CatchXSL (which is free).