[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] including files


Subject: [xsl] including files
From: Nathan Shaw <n8_shaw@xxxxxxxxx>
Date: Tue, 9 Jul 2002 08:53:00 -0700 (PDT)

I am trying to find the best way to include static
files (containing xhtml) into my XSLT. 

I first thought of using entities, but these include
files have to be separate files, as they will be used
by 3 different applications and entities used in an
XSLT have to be declared locally in that XSLT correct?

Next, I thought of using document() and found from one
of Jenni's excellent posts, a good way to do this.
However, because the files I am including are not
really XML, but xhtml (some of them do not have a
containing element), I am running into problems there
as well.

The only other solution that I cam across is to use a
Java extension function to simply dump the contents of
the external files into their respective places within
the XSLT, but then the complexity of the app goes up
tremendously (for one of the apps, we would have a
java app calling an XSLT calling a java app, which is
just a pain in the arse).

I guess I am looking for some advice or some words of
wisdom from those who have crossed this bridge before
me. I want to end up with a highly flexible, simple
and elegant solution.

FYI, the include files are a 1) header 2) footer 3)
left-hand nav and 4) top nav

TIA - Nate (I am a digester, so a cc to me with a
direct reply to the list is appreciated!)

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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



Current Thread
Keywords