This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: RE: Using Variable in Template Matching....
- From: "Hunsberger, Peter" <Peter dot Hunsberger at stjude dot org>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 24 Jun 2002 08:54:37 -0500
- Subject: RE: RE: [xsl] Using Variable in Template Matching....
- Reply-to: xsl-list at lists dot mulberrytech dot com
>
> 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