RE: [xsl] including files

Subject: RE: [xsl] including files
From: "Dion Houston" <dionh@xxxxxxxxxxxxx>
Date: Tue, 9 Jul 2002 09:24:27 -0700
Hi Nathan:

XHTML is an XML reformulation of HTML, and hence an XHTML document is an
XML document.  What do you mean by not having a containing element?  Are
you saying that the file does not have a root <html> element?  If so, it
sounds like your files contain XML fragments, and there's no XSLT way to
load those.  You certainly could do so with an extension function.



-----Original Message-----
From: Nathan Shaw [mailto:n8_shaw@xxxxxxxxx] 
Sent: Tuesday, July 09, 2002 8:53 AM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] including files

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

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread