Subject: Re: Is there something like a trace processing output for XSLT processing? At least with Saxon?
From: Tony Graham <Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 11 Dec 2009 11:00:53 +0000
|
On Fri, Dec 11 2009 10:41:35 +0000, bxstover@xxxxxxxxxxx wrote:
> I wonder wether there is something like a trace output for the XSLT
> processing.
>
> In other words: When applying a XSLT script onto a XML input file all
> matching templates and matched XML nodes and their transformation
> should be written to a log file.
>
> Is this somehow possible? At least with Saxon?
Yes. Saxon comes with a stylesheet for getting timing information out
of the trace.
Jeni Tennison's XSpec [1] has a trace listener and a stylesheet for
generating a coverage report. It seems the coverage report wasn't
working in the 0.1 release, but it does work in the version that you can
get from a Subversion checkout. I now no longer know where or how I
found the coverage documentation, but see
http://www.menteithconsulting.com/wiki/TestingXSLT/XSpec#Coverage for
some sample output.
Regards,
Tony Graham Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx
Director W3C XSL FO SG Invited Expert
Menteith Consulting Ltd XML Guild member
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
[1] http://code.google.com/p/xspec/
|