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]

Re: problem with Passing Parameters to Templates



Cool.

Thanks a lot, David.

Helen


>From: David Carlisle <davidc@nag.co.uk>
>Reply-To: xsl-list@lists.mulberrytech.com
>To: xsl-list@lists.mulberrytech.com
>Subject: Re: [xsl] problem with Passing Parameters to Templates
>Date: Mon, 22 Jan 2001 16:33:26 GMT
>
> >  But I would like to do it with named template so that I can
> > call the template for other elements.
>
>But why not pass in the node as the parameter rather than the name of
>the node, which would make things a lot simper.
>
>That is, rather than
>
>   <xsl:with-param name="node"  select="'desc'"/>
>....
>   <xsl:value-of select=".//*[local-name()=$node]"/>
>
>
>do
>
>
>   <xsl:with-param name="node"  select=".//desc"/>
>....
>   <xsl:value-of select="$node"/>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


 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]