On Fri, Dec 11 2009 10:41:35 +0000, bxstover(_at_)yahoo(_dot_)co(_dot_)uk 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(_dot_)Graham(_at_)MenteithConsulting(_dot_)com
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/
--~------------------------------------------------------------------
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>
--~--