Subject: Re: [xsl] Name of current mode From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 19 Apr 2010 12:15:01 -0400 |
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>
<xsl:template match="image" mode="captioned-image" priority="-1"> ... add your attribute ... </xsl:template>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Name of current mode, Tony Graham | Thread | [xsl] entities in decimal-format/fo, Михаил Сабуренков |
Re: [xsl] Name of current mode, Tony Graham | Date | Re: [xsl] For this input element, f, Wolfgang Laun |
Month |