Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XSL code coverage tool

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.

like image 816
lindelof Avatar asked Sep 19 '08 07:09

lindelof


People also ask

Is XSL the same as XSLT?

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.

What is XSL node?

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.

What is XSL for each?

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


3 Answers

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.

like image 186
ACK_stoverflow Avatar answered Nov 13 '22 06:11

ACK_stoverflow


Not sure about code coverage itself, but you can find an XML debugger and profiler from Oxygen which might help you out.

like image 28
Mladen Mihajlovic Avatar answered Nov 13 '22 06:11

Mladen Mihajlovic


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:

enter image description here

like image 36
Artemis Avatar answered Nov 13 '22 06:11

Artemis