Re: [xsl] Name of current mode

Subject: Re: [xsl] Name of current mode
From: Dave Pawson <davep@xxxxxxxxxxxxx>
Date: Mon, 19 Apr 2010 14:34:10 +0100
On Mon, 19 Apr 2010 09:28:14 -0400
"G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:

> I would do:
> 
>     <xsl:apply-templates select="*" mode="captioned-image">
>       <xsl:with-param name="mode" select="'captioned-image'"
> tunnel="yes"/> </xsl:apply-templates>
>     ...
>     <xsl:apply-templates select="*" mode="block-image">
>       <xsl:with-param name="mode" select="'block-image'"
> tunnel="yes"/> </xsl:apply-templates>
>     ...
>     <xsl:template match="image" mode="captioned-image block-image">
>       <xsl:param name="mode" tunnel="yes"/>
>       ...
>       <xsl:if test="$mode='captioned-image'">
>         ...add some attribute...
>        </xsl:if>
>       ...
>     </xsl:template>
> 
> I hope this helps.


Best use yet I've seen for tunneling Ken. 

Thanks

-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

Current Thread