Subject: RE: [xsl] how to call templates from diff stylesheets conditional ly. From: Wate@xxxxxxxxx Date: Mon, 30 Apr 2001 18:06:14 -0400 |
hi I have these templates with different names. -shirish -----Original Message----- From: Jeni Tennison [mailto:mail@xxxxxxxxxxxxxxxx] Sent: Monday, April 30, 2001 4:34 PM To: Wate@xxxxxxxxx Cc: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] how to call templates from diff stylesheets conditionally. 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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to get Date, Purnima Shankaran | Thread | Re: [xsl] how to call templates fro, Jeni Tennison |
RE: [xsl] matching input value to a, John Wang | Date | [xsl] Printing an XSL->HTML documen, Emerick Sanders |
Month |