xsl-list
[Top] [All Lists]

[xsl] Name of current mode

2010-04-19 07:25:20
Hello,

is there an accessor function for the current mode in XSLT 2?

The idea is to have something like this (I know this is NOT valid code!):

--snip--
<xsl:template match="image" mode="captioned-image block-image">
   
   ...

  <xsl:if test="current-mode()='captioned-image'">
      ...add some attribute...
  </xsl:if>

   ...

</xsl:template>
--snip--


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

<Prev in Thread] Current Thread [Next in Thread>