This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: RE: Using Variable in Template Matching....


>
>  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]