Subject: Re: [xsl] Insert Footer And not Header using XSL From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 12 Jan 2004 11:58:03 GMT |
> Hi, > > Sorry I want to insert Footer instead of Header on the following line: > > <xsl:template match="html"> > <xsl:copy>Header_text > <a href="http://www.google.com"> > <img src="/></a> > <xsl:apply-templates select="*|text()|@*" /> > </xsl:copy> > </xsl:template> > > <xsl:template match="*|text()|@*"> > <xsl:copy> > <xsl:apply-templates select="*|text()|@*"/> > </xsl:copy> > </xsl:template> > > I don't want to change the second block of template. It will remain there. > Want to modify the first template so that a footer can be inserted. > Isn't this clear??? your link and image only come at the top because you have them before the <xsl:apply-templates, if you put them after that, they will come at the bottom. Note that your current header, and your footer if you add it to that template are completely invalid html. An (xhtml version of an) html document should have the structure <html> <head> <title>..</title> </head> <body> ... </body> </html> So you really want to add you head and foot sections to the body element, not to the html one. So you probably want to change match="html" to match="body" David -- http://www.dcarlisle.demon.co.uk/matthew ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Insert Footer And not Hea, Animesh Sharma | Thread | RE: [xsl] Insert Footer And not Hea, Animesh Sharma |
RE: [xsl] Insert Footer And not Hea, Animesh Sharma | Date | RE: [xsl] Insert Footer And not Hea, Animesh Sharma |
Month |