[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Name of current mode

Subject: Re: Name of current mode
From: "Christian Roth" <roth@xxxxxxxxxxxxxx>
Date: Mon, 19 Apr 2010 17:00:24 +0200
Re:  Name of current mode
Mario Madunic wrote:

>Please post your solution as I'd be really interested in what the
>results are. I've never used tunneling myself and to be honest have
>completely forgotten about it since I first read about it.

Ken Holman has posted the solution already in this thread, which is
identical to how I would have done it (if I had done it that
way... :-)). Basically, you copy the mode into a tunnel parameter at the
first mode'd xsl:apply-templates and regardless of how many templates
lie in-between, in the template where you need the mode info again, you
can access it with via a tunnel param declaration. The tunnel="yes"
allows you to not have to explicitly pass that parameter in any of the
other templates that may be in-between in the calling chain.

Thanks to all who responded. I still think that a way to access the mode
information with an accessor would be a welcome enhancement of XSLT 2
and would help avoiding to maintain redundant information manually.


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.