[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 15:36:01 +0200
Re:  Name of current mode
Mario Madunic wrote:

>How about defining a var/param at the top of the mode and test its
>content to find out which mode you are at currently. Not nice but could
>be what you are looking for. Would the variable clash with itself if it
>is called recursively?

I guess yes, a tunnel parameter would do (initialized at the xsl:apply-
templates that starts the mode), and no, I don't think a recursive
template call would be a problem. I just thought that while I have the
mode information already (in the dynamic context), I could spare me a
duplicate of that info in a tunnel parameter (avoiding any possible
mistakes in keeping that duplicate correct).


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.