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

Re: call-template does not find named template in same

Subject: Re: call-template does not find named template in same stylesheet
From: "Alexander Gutman" <gutman@xxxxxxxxxxxxxxx>
Date: Mon, 13 Aug 2001 11:05:51 +0700
call template named template
Hello, Phillip.

It is difficult to localize the problem
according to a brief description you provided.
Could you represent the structure of your
imports/includes and indiciate the places at which
the "test" and "named-template" templates reside?

-- 
Alexander E. Gutman

Phillip Rhodes wrote:
> I have 2 stylesheets, 1st stylesheet does a bunch of imports.  2nd
> stylesheet calls named templates (the named templates are defined in the
> imported stylesheets.
> 
> In the 2nd stylesheet, I have defined a named template.  There is a
> template by the same name in one of the stylesheets imported in 1st 
stylesheet.
> 
> My problem is that when I call the template in the second stylesheet, I
> expect it to resolve to the local named template, but it does not.  The
> template "test" in the imported stylesheet is being called.
> 
> Here is my stylesheet:  I am calling "named-template" from stylesheet 1. 
 I
> expect by calling the named template "test", it would resolve to the one 
in
> the same stylesheet, however, it is resolving to the "test" template
> imported by stylesheet 1.
> (abbreviated)
> 
> <xsl:template name="named-template">
>       <xsl:call-template name="test"/>
> </xsl:template>
> 
> 
> <xsl:template name="test">
>       <h1>This is a local test</h1>
> </xsl:template>
> 
> Thanks....been beating my head on this one.

 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.