Mark wrote:
Everything I can find on this I understand to tell me that I need to
pass the parameter through each element level of the processed xml
data otherwise that parameter passes no further than the last element
level it is set at. I am attempting this by setting the parameter
*intrefNow* in every template which I believe is therefore required.
If you use tunneling parameters then you only need to pass them when
first set and only need to accept them when needed, e.g.:
<xsl:template match="docinc">
<xsl:apply-templates>
<xsl:with-param name="docuri" select="@href" tunneling="yes"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="some-element-that-cares">
<xsl:param name="docuri" tunneling="yes"/>
</xsl:template>
Tunneling parameters are automatically passed down through apply-templates.
Tunneling parameters are new in XSLT 2.
Cheers,
Eliot
--
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 610.631.6770
www.reallysi.com
www.rsuitecms.com
--~------------------------------------------------------------------
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>
--~--