Re: [xsl] __LINE__ equivalent in XSTL

Subject: Re: [xsl] __LINE__ equivalent in XSTL
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Fri, 2 Dec 2011 14:58:58 +0000
> In complex conversion pipelines with lots of template rules and lots of
> passes in different modes,

Another helper technique when you have a pipeline is to have
additional entry point stylesheets, where the result is the output of
one of the internal steps in the pipe.

For example, if your normal pipeline is:

A -> B -> C

then it's difficult to debug the result of the B step because if you
add an xsl:copy-of select="$B" to the C step, then the debugger will
just show the output as coming from that copy-of.

However, if you add a new debug entry point stylesheet which just does:

A -> B

then you can click around the result in the debugger and easily find
where things have come from.

Hopefully that makes sense...




-- 
Andrew Welch
http://andrewjwelch.com

Current Thread