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

Re: call-template not finding xsl-include templates

Subject: Re: call-template not finding xsl-include templates
From: "Alexander Gutman" <gutman@xxxxxxxxxxxxxxx>
Date: Sun, 12 Aug 2001 12:51:20 +0700
xsl include call template
Hello, Phillip.

You have made numerous syntactical errors,
but, anyway, you are not lucky with your wish: "xsl:if"
is not allowed as a top-level subnode of a stylesheet.
(I am surprised that your XSLT processor does not complain.)

Thus, conditional includes are impossible.
You should use another approach for language selection,
and I am sure there are many of them.
Hope, other subscribers will direct you to some URLs.

-- 
Alexander E. Gutman


Phillip Rhodes wrote:
> I am calling named templates that are in imported stylesheets.  The
> stylesheets are imported in specific order so that the most appropriate
> template is called.
> 
> Now,in certain cases (for a node in the document), I have to change the
> rules for the stylesheet so that a different version of the template is 
called.
> 
> I did an include of the correct stylesheet, but my call-template is 
still
> only seeing the original imported stylesheet.
> 
> Tips would be appreciated!
> 
> <!-- english.xsl-->
> <xsl:template name="hello">
> Hello
> </template>
> 
> <!-- french.xsl-->
> <xsl:template name="hello">
> Bonjour
> </template>
> 
> <!--  test.xsl  -->
> <xsl:import href="english.xsl">
> 
> <xsl:if test="true">
> <xsl:include href="french.xsl">
> </xsl:if>
> <xsl:call-template name="hello"/>
> 
> Not exactly my case, but what I want to have happen is a "Bonjour"
> Thanks!


 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.