W3C home > Mailing lists > Public > xsl-editors@w3.org > July to September 1999

multiple includes of same sheet

From: Jon Smirl <jonsmirl@mediaone.net>
Date: Thu, 12 Aug 1999 23:48:56 -0400
Message-ID: <037d01bee53e$c4bce780$0201a8c0@ne.mediaone.net>
To: <xsl-editors@w3.org>
I am finding it useless to have one XSL sheet import or include another and
then use these sheets with the embedded include/import in a larger system.
The problem stems from multiple includes of the same file. There really
needs to be a way to say: don't include/import this file if it is already

For example
file A has a wild card match, Z,  in it
file B includes A - B is used standalone, has templates named X and Y
file C includes A - C is used standalone, has different template named X
file D needs X, Y and Z from C, B, A

You can't import C, B, A because C includes A and A has a wild card (hides
contents of B)
If you include C, B, A you have to rely on the multiple templates of the
same name error resolution

Two solutions, provide a way to say don't load if already loaded. Or create
two more wrapper files, E/F which split B/C into templates and includes.  In
my system I will need hundreds of wrapper files and I don't want to do this.

Jon Smirl
Received on Thursday, 12 August 1999 23:49:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:17 UTC