This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Parameter in "xsl:include"
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Parameter in "xsl:include"
- From: Martin Renner <m dot renner at tiscon dot de>
- Date: Thu, 08 Feb 2001 17:11:48 +0059
- References: <000b01c091da$32229880$ea463c3e@oemcomputer>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi.
> No. (FAQ). xsl:include is a compile-time facility, not run-time. Explain
> your problem, and someone will tell you the right way of solving it.
Cool service :-)
I have several XSL files which have some parts in common. So I would like to put
those common parts (three different "xsl:template match" blocks) in three different
files which can be included as needed.
The XSL files, which will include the common files, are structered within subdirectories.
To make the use of the includes less error-prone, all include-statements should look
the same (so someone can use copy&paste).
e.g. something like
file1: include "$common/template1.xsl"
sub1/file2: include "$common/template1.xsl"
instead of
file1: include "../common/template1.xsl"
sub1/file2: include "../../common/template1.xsl"
The parameter "$common" is already set to the correct directory. It's just that I
cannot use it in xsl:include.
Martin
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list