xsl-list
[Top] [All Lists]

Re: [xsl] Profiling templates

2008-05-22 06:50:58
On Thu, May 22 2008 14:08:54 +0100, peter(_at_)semantico(_dot_)com wrote:
I have a lot of data and some stylesheets which have /evolved/ over
time. I suspect that the quite a bit of the code is not ever being
executed, is there some way of finding the parts of the stylesheet that
is never accessed other than embeding xsl:message everywhere?

AFAICT, the available XSLT profilers will at best tell you what
templates have been used, not what templates haven't been used.  The
ones that just report which templates have been used won't help you, for
example, to work out which parts of a xsl:choose haven't been exercised.

I know of one work-in-progress to make a XSLT coverage tool, but I don't
when or if that will be cooked enough to be made public.

If you also have your input and output schema, you may get some joy from
the XSLV static validation tool at http://www.brics.dk/XSLV/.

Regards,


Tony Graham                         
Tony(_dot_)Graham(_at_)MenteithConsulting(_dot_)com
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>