This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Limitations of Includes in XSL


At 00/04/25 15:24 -0400, I wrote:
>Thankfully, it is quite straightforward.  In your template, use 
><xsl:call-template name="named-thingy"/>, and then at the top level 
>(between templates) you can <xsl:include> the stylesheet fragment that has 
><xsl:template name="named-thingy"/>.

Sorry, the <xsl:template name="named-thingy"> wouldn't be empty, it would 
contain the literal result elements and instructions you need to execute to 
produce your result.

Called templates can have parameterized variables and can be invoked on 
demand as many times as you need, so you can probably distill further 
fragments at a finer level of granularity that your called templates can, 
themselves, call to help with code maintenance.

Apologies for the slip of the fingers.

.............. Ken

--
G. Ken Holman                    mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.             http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999   (Fax:-0995)
Web site: XSL/XML/DSSSL/SGML services, training, libraries, products.
Practical Transformation Using XSLT and XPath      ISBN 1-894049-04-7
Next instructor-led training:    2000-05-02,2000-05-11/12,2000-05-15,
-                                    2000-06-12,2000-06-13,2001-01-27


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]