Re: Limitations of Includes in XSL
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.
-- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx 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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format