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

Re: how to call templates from diff stylesheets condit

Subject: Re: how to call templates from diff stylesheets conditionally.
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Mon, 30 Apr 2001 21:33:42 +0100
diff. templates
Hi Shirish,

>> I have, say, two stylesheets s1.xsl and s2.xsl and one master
>> stylesheet master.xsl
>> 
>> there is one template in each s1 and s2.Now in the master.xsl i
>> want to call these templates based on some conditions.

There's no way to direct a processor to use a template from one or
other stylesheet, unless, of course, the templates are named
differently in the two stylesheets or are in different modes if
they're matching templates.

If the templates are named the same in the two different stylesheets,
or match the same thing in the same mode, then the one that is
included (with xsl:include) or imported (with xsl:import) last is the
one that's used.

Perhaps you could give more details about the templates that you want
to call?

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 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.