call-template does not find named template in same sty
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.
<xsl:template name="named-template"> <xsl:call-template name="test"/> </xsl:template>
Thanks....been beating my head on this one.
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