xsl-list
[Top] [All Lists]

Re: [xsl] retrieving mode name

2006-06-23 03:30:37
On 6/23/06, Georg Hohmann <georg(_dot_)hohmann(_at_)gmail(_dot_)com> wrote:
Hi all,

maybe a simple question:
How can retrieve the name of the mode a stylesheet is currently processed in?
I would like to do something like this:
<if test="$modename eq example">

Is that possible (using saxon8 & xslt2)?

If you mean the inital mode that can be set when starting the
transform (the -im switch) then it's not possible to detect that
within the stylesheet.  You could pass it is as a parameter and use
that, or maybe explain a bit more what you are trying to achieve and
see if theres a different solution.

cheers
andrew

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