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

RE: Problem with <xsl:import> and <xsl:call-template>!

Subject: RE: Problem with <xsl:import> and <xsl:call-template>!
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 25 Jun 2001 09:20:40 +0100
xsl call template import
If the output of a template is produced twice, that's because you've invoked
it twice, either explicitly or implicitly. To know why you've invoked it
twice, I would need to see your stylesheet. However, you might find it
useful to debug this by tracing the execution of templates, for example with
Saxon you can use the -T option.

Mike Kay
Software AG

>
> Hi
>
> I see that there is a problem by importing stylesheets
> and calling templates.Firstly by importing, the
> templates in the imported stylesheet are available to
> me so in that case I assume that I do not need to call
> them explicitly.But due to need I decide to call them
> at specific places ie at specific points.So i see that
> there is a duplication of HTML tags for eg.Suppose i
> have an xsl called "Results.xsl".This displays a HTML
> table structure of rows within a form.
> Now when I just import it in another stylesheet
> (HeaderandResults.xsl)everything is fine.But if i have
> do some processing and then call the template in the
> Results.xsl stylesheet I get 2 FORMS (ie i see this as
> alert msg in my Javascript!)
> Can somebody please explain this behaviour and what
> would be an right solution for a simple reuse of code
> without duplication!!!
>
> --Vijay
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 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.