This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:include blues..
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] xsl:include blues..
- From: "Kevin Duffey" <kevin dot duffey at home dot com>
- Date: Tue, 13 Feb 2001 08:34:46 -0800
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Michael
> Beddow
> Sent: Tuesday, February 13, 2001 2:50 AM
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] 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