On Mon, 19 Apr 2010 09:28:14 -0400
"G. Ken Holman" <gkholman(_at_)CraneSoftwrights(_dot_)com> 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
--~------------------------------------------------------------------
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>
--~--