Hi Lenya devs,
in case you didn't find out yet - the IncludeTransformer offers a quite
elegant way to implement 404 pages without cluttering the sitemap:
<div id="body">
<i:include
src="lenya-document:{$uuid},pub={$pub},area={$area},lang={$language}?format=xhtml"
strip-root="true">
<i:fallback>
<p>
The requested document doesn't exist.
</p>
</i:fallback>
</i:include>
<xsl:call-template name="footer"/>
</div>
The uuid parameter is passed from the publication based on
{page-envelope:document-uuid}. Since it is empty, the lenya-document:
source can't be resolved and the contents of the <i:fallback/> element
is copied to the result tree.
I used this code in the docu publication.
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]