Are there any tools that can tell me what percentage of a XSL document get actually executed during tests?
UPDATE
I could not find anything better than Oxygen's XSL debugger and profiler, so I'm accepting Mladen's answer.
XSLT is designed to be used as part of XSL. In addition to XSLT, XSL includes an XML vocabulary for specifying formatting. XSL specifies the styling of an XML document by using XSLT to describe how the document is transformed into another XML document that uses the formatting vocabulary.
Use the XSLTransform node to transform an XML message to another form of message, according to the rules provided by an XSL (Extensible Stylesheet Language) style sheet, and to set the Message domain, Message set, Message type, and Message format for the generated message.
<xsl:for-each> XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes. The <xsl:for-each> element selects a set of nodes and processes each of them in the same way. It is often used to iterate through a set of nodes or to change the current node.
This didn't exist back when this question was asked, but now there is ONE option for finding code coverage of XSLT documents:
http://code.google.com/p/cakupan/
I'll admit that I haven't used it yet, as I'm still gathering information right now, but as far as I'm aware, this is IT.
Not sure about code coverage itself, but you can find an XML debugger and profiler from Oxygen which might help you out.
If anyone is still interested, Saxon has a performance analysis, which has a functionality that gives you a breakdown of each template and the number of times they are used (which is great for optimisation).
This is how my output looks like:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With