- From: G. Ken Holman <gkholman@CraneSoftwrights.com>
- Date: Thu, 12 Jun 2003 12:28:27 -0400
- To: <www-xsl-fo@w3.org>
At 2003-06-12 10:57 -0500, Mike Haarman wrote: >----- Original Message ----- >From: "Ryan Caruso" <rcaruso@cdsys.com> > > > simply want to be able to have multiple stylesheets and call the ones I > > need from a "main" style sheet? > >The top level instruction xsl:import is typically used for this: >... >Because imports are top level elements, you cannot wrap imports in testing >blocks to switch on particular imports. > >xsl:include incorporates another stylesheet at the point of reference, is not >constrained to the top-level and can thus be used in a switch. My understanding is that in XSLT 1.0 the above statement is not true: Section 2.6.1 states "The xsl:include element is only allowed as a top-level element". The entire set of top-level constructs must be fully resolved before the source node tree can be created from the source file ... thus it is not possible for any kind of stylesheet fragment inclusion to happen during the processing of the source file nodes. I hope this helps. ................. Ken -- Upcoming hands-on courses: (registration still open!) - (XSLT/XPath and/or XSL-FO) North America: June 16-20, 2003 G. Ken Holman mailto:gkholman@CraneSoftwrights.com Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-11-X Practical Formatting Using XSL-FO Member of the XML Guild of Practitioners: http://XMLGuild.info Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc
Received on Thursday, 12 June 2003 12:28:35 UTC