[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Confirmimg - Bug in Accessing Global XSL Variables
Ok, lets give this a try. There are 3 xslt document:
1) base_template.xsl 2) master_template.xsl 3) page_template.xsl Page_template Imports (inherits) master_template who imports base_template. The Code: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wbt="myWebTemplater.1.0"> <!-- BASE TEMPLATE --> <xsl:template name="wbt:A_Template"> BASE_TEMPLATE </xsl:template> <xsl:template name="wbt:B_Template"> B_Template in MASTER </xsl:template> </xsl:stylesheet>
<!-- MASTER TEMPLATE --> <!-- IMPORT BASE --> <xsl:import href="base_template.xsl"/>
</xsl:stylesheet>
<!-- PAGE TEMPLATE --> <!-- IMPORT MASTER TEMPLATES --> <xsl:import href="master_template.xsl"/>
<xsl:template match="/"> <!-- THIS FAILS --> <xsl:call-template name="wbt:B_Template"/> </xsl:template> </xsl:stylesheet> On 9/3/06, Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote: On 9/3/06, Karl Stubsjoen <kstubs@xxxxxxxxx> wrote: > I hate to say this, but I still think there is a problem here. > Possibly I am doing something wrong so not real confident at the > moment. > > It appears that the global variable problem has been fixed in .NET 2.0 > using the XslCompiledTransform Class. However, what is not fixed is > the use of global templates. > > There does not appear to be a problem if the global template is named > without a namespace, but as soon as you introduce a namespace, the > call fails. > > There is not a problem if the template is defined in the immediate > imported base template, but when the defined template is 2 deep. > > Please confirm.
|
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
|