[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl:include blues..
Hi, Yeah..I was thinking this very same thought on the way home last night as I was pounding my head against the wheel in frustration! ;) I figured, the <xsl:include..> for header and footer was one line each. And adding the <html>... and ..</html> can be done on each page. However, in the <head></head> section, on some pages I will include different JavaScript routines, so I was hoping to be able to set that dynamically in a variable before the included header, so that the javascript name would be dynamically chosen at runtime. I think I like the first reply..having a call with the contents. Seems more fitting I think. I'll have to play around with the choices. Thanks all for replying. > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Michael > Beddow > Sent: Tuesday, February 13, 2001 2:50 AM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: xsl:include blues.. > > > On Tuesday, February 13, 2001 8:30 AM > Kevin Duffey wrote > > > I am having two dilemas with using an XSL include. First, I want to > include > > a "header" and "footer" on every page. The header would be the > opening HTML > > (<html><head></head><body>), and the footer would be the closing > > </body></html>. > > Do you really *have* to put the <body> into your header and the > </body> into your footer (ditto for <html></html>, since every html > page needs those tags anyway? > > Why not keep the <html> and <body> etc in your main sheet and just > import the (presumably) different contents you want to have, which > could then be well formed? This is part of what Oliver and Robert have > proposed in their more detailed answers, but I thought it was worth > emphasising what seems to me the core of your problem. > > Michael > ------------------------------------------ > Michael Beddow > http://www.mbeddow.net/ > > > 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
|