[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: including files

Subject: RE: including files
From: "Dion Houston" <dionh@xxxxxxxxxxxxx>
Date: Tue, 9 Jul 2002 09:24:27 -0700
including js files in xsl
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.

Thanks!

Dion

-----Original Message-----
From: Nathan Shaw [mailto:n8_shaw@xxxxxxxxx] 
Sent: Tuesday, July 09, 2002 8:53 AM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  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
http://sbc.yahoo.com

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


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.