|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: call-template with-param problem.
On Sat, 25 Aug 2001, Phillip Rhodes wrote:
> I have a named template, that I invoke with a parameter. However, my
> result always contains the literal "{$title}".
>
> <xsl:template name="header">
> <h2>{$title}</h2>
> </xsl:template>
The {} or attribute value template (AVT) is only 'evaluated' evaluated in
the context of an attribute value, e.g. <a href="{$foobar}">.
Here, you should say:
<h2><xsl:value-of select="$title"/></h2>
Regards,
</Steven>
outerthought.org
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
|

Cart








