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

RE: RE: [xsl] Using Variable in Template Matching....


Subject: RE: RE: [xsl] Using Variable in Template Matching....
From: "Hunsberger, Peter" <Peter.Hunsberger@xxxxxxxxxx>
Date: Mon, 24 Jun 2002 08:54:37 -0500

>
>  It is an Element Name
>

[snip]

> >
> > Can i do
> >    <xsl:apply-templates match="$param"/>
> >
> > and....
> >
> >     <xsl:template match="$param"/>
> >
> > Thanks
> >

One thing that wasn't mentioned that may be useful in this situation is the
use of modes.  In particular, for generic processing something like:

	<xsl:apply-templates select="*[local-name()=$param]" mode="gunk"/>

	<xsl:template match="*" mode="gunk">

might help.  This allows you to ensure that the matching template is only
invoked on nodes selected via the param match.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread