Subject: Re: [xsl] how to call templates from diff stylesheets conditionally. From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx> Date: Mon, 30 Apr 2001 21:33:42 +0100 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] table alignment, Tanzila Mohammad | Thread | RE: [xsl] schema's and getting enum, Ben Robb |
[xsl] Browser caching XML, Bharat . Chintapally | Date | Re: [xsl] schema's and getting enum, Jeni Tennison |
Month |