|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: including files
> > 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. Well, he could load them as external entities. I can't understand his argument for not using that option. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > > 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 > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








