[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Name of current mode


Subject: [xsl] Name of current mode
From: "Christian Roth" <roth@xxxxxxxxxxxxxx>
Date: Mon, 19 Apr 2010 14:24:50 +0200

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


Current Thread
Keywords