[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: call-template with-param problem.

Subject: Re: call-template with-param problem.
From: Steven Noels <stevenn@xxxxxxxxxxxxxxxx>
Date: Sat, 25 Aug 2001 15:22:12 -0500 (CDT)
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.