|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: problem with Passing Parameters to Templates
Subject: Re: problem with Passing Parameters to Templates
From: "helen li" <helen_p_li@xxxxxxxxxxx>
Date: Mon, 22 Jan 2001 12:40:58 -0500
|
Cool.
Thanks a lot, David.
Helen
From: David Carlisle <davidc@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
| RSS 2.0 |
|
| Atom 0.3 |
|
|