This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: call-template with-param problem.
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] call-template with-param problem.
- From: Steven Noels <stevenn at outerthought dot org>
- Date: Sat, 25 Aug 2001 15:22:12 -0500 (CDT)
- Reply-To: xsl-list at lists dot mulberrytech dot com
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