Re: [xsl] __LINE__ equivalent in XSTL

Subject: Re: [xsl] __LINE__ equivalent in XSTL
From: Graydon <graydon@xxxxxxxxx>
Date: Fri, 2 Dec 2011 07:56:51 -0500
On Fri, Dec 02, 2011 at 01:50:51PM +0100, Hermann Stamm-Wilbrandt scripsit:
> As Ken said the XSLT processor can have line number information.
> 
> An XPath expression for a given stylesheet's nodes can be considered
> as an equivalent of "line number".
> 
> Please see Oliver Becker's solution on getting trace output for XSLT:
> http://www2.informatik.hu-berlin.de/~obecker/XSLT/#trace
> 
> 
> Saxon extension "saxon:path" might be useful.
> 
> Or, if you do not use saxon, this posting of Dimitre on Dave's XSL FAQ:
> http://www.dpawson.co.uk/xsl/sect2/N6077.html#d8281e21

Or use an XML IDE with debugger support during development, if this is a
development requirement rather than a production one.  (oXygen certainly
has a useful debugger; there are probably more.)

-- Graydon

Current Thread