On Tue, 15 Feb 2005 19:35:43 +0100, Tjerk Wolterink
<tj***@wolterinkwebdesign.com> wrote:
it can be done, but often the conten of the page is between a tag. That tag is openend in the header
and closed in the footer.
If there's a single element spanning that far, then that's not a
footer, it's the body of the page.
Many of my pages have a structure like this :
<html>
[...]
<body>
<div class="header" >
[...]
</div>
<div class="nav-stuff" >
[...]
</div>
<div class="body-text" >
<div class="stuff" >
[...]
</div>
<div class="other-stuff" >
[...]
</div>
</div>
<div class="footer" >
[...]
</div>
</body></html>
Now generating the element <div class="footer" > is a valid thing for
an XSLT templte to be doing, but trying this:
<xslt:template name="output-footer" >
</div>
<div class="footer" >
[...]
</div>
</xslt:template>
is not only poorly-formed, but it's semantically inappropriate too.
Close that body text from the same scope in which you opened it,
whether you're writing XSLT or any other page-generation language.