xsl-list
[Top] [All Lists]

RE: [xsl] Name of current mode

2010-04-19 08:50:36
Christian,

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.

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries

-----Original Message-----
From: Christian Roth [mailto:roth(_at_)visualclick(_dot_)de] 
Sent: Monday, April 19, 2010 8:36 AM
To: XSL List
Subject: Re: [xsl] 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).

-Christian


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


--------------------------------------------------------------------
Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and  any and all information or 
material transmitted with this communication) is confidential, may be 
privileged and is intended only for the use of the intended recipient. If you 
are not the intended recipient, any review, retransmission, circulation, 
distribution, reproduction, conversion to hard copy, copying or other use of 
this communication, information or material is strictly prohibited and may be 
illegal. If you received this communication in error or if it is forwarded to 
you without the express authorization of New Flyer, please notify us 
immediately by telephone or by return email and permanently delete the 
communication, information and material from any computer, disk drive, diskette 
or other storage device or media. Thank you.


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