|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Confirmimg - Bug in Accessing Global XSL Variables
I could not reproduce your claimed problems.
With this files: base_template.xsl: ============== <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
A template in BASE
</xsl:template> <xsl:template name="wbt:B_Template">
B_Template in BASE
</xsl:template>
</xsl:stylesheet>
<!-- MASTER TEMPLATE --> <!-- IMPORT BASE -->
<xsl:import href="base_template.xsl"/>
A template in MASTER
</xsl:template>
</xsl:stylesheet>and page_template.xsl: ============== <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wbt="myWebTemplater.1.0"> <!-- PAGE TEMPLATE --> <!-- IMPORT MASTER TEMPLATES -->
<xsl:import href="master_template.xsl"/> <!-- OVERRIDE A_Template -->
<!-- THIS FAILS TO OVERRIDE THE TEMPLATE -->
<xsl:template name="wbt:A_Template">
A template in PAGE
</xsl:template> <xsl:template match="/">
<!-- THIS FAILS -->
<xsl:call-template name="wbt:B_Template"/>
<xsl:call-template name="wbt:A_Template"/>
</xsl:template></xsl:stylesheet> when applying the stylesheet contained in page_template.xsl to any source xml (not used) file, I get the correct results: <?xml version="1.0" encoding="utf-8"?> B_Template in BASE A template in PAGE Anyone can do/verify this result using the XML Editor of VS 2005.
On 9/3/06, Karl Stubsjoen <kstubs@xxxxxxxxx> wrote: Ok, lets give this a try. There are 3 xslt document:
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. 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
|







