On 6/23/06, Georg Hohmann <georg.hohmann@xxxxxxxxx> 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
|