xsl-list
[Top] [All Lists]

Re: [xsl] Tunnelled params and variables

2007-07-27 08:15:09
At 2007-07-28 00:24 +0900, Justin Johansson wrote:
What are the use cases for having tunnel="yes" on xsl:params and variables?

I choose to use tunnel="yes" on xsl:param and xsl:with-param when between the current node being matched and a deeply-nested match that needs information from the current node (1) I am unsure which template rules are going to fire, or (2) I have a ton of template rules that will fire, or (3) the built-in template rules are going to fire.

Compared to XSLT 1 where I had to track down all of the template rules and supplant all of the built-in template rules, this is a real convenience for me not to have to identify which template rules need to have the param added (with the associated with-param on every embedded apply-templates), nor have to rewrite the built-in template rules.

It has been a time-saver.

I hope this helps.

. . . . . . . . . . . . . . .  .Ken

--
Upcoming public training: XSLT/XSL-FO Sep 10, UBL/code lists Oct 1
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Jul'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


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

<Prev in Thread] Current Thread [Next in Thread>