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


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