xsl-list
[Top] [All Lists]

Re: [xsl] __LINE__ equivalent in XSTL

2011-12-02 06:57:02
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

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