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

Re: Insert Footer And not Header using XSL

Subject: Re: Insert Footer And not Header using XSL
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 12 Jan 2004 11:58:03 GMT
insert footer
> 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

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.