[xsl] Re-work "main" template output?

Subject: [xsl] Re-work "main" template output?
From: Phillip B Oldham <phillip.oldham@xxxxxxxxxx>
Date: Wed, 07 Dec 2005 08:43:58 +0000
Hi again.

I have a stylesheet like the following:

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
    <xsl:output method="html" />

    <xsl:template name="main" match="/">
    <html><body>
       <xsl:apply-templates />
    </body></html>
    </xsl:template>

</xsl:stylesheet>

What I'd like to be able to do is allow the "main" template to
apply-templates as normal, but then capture the output and pass that
through another template so that I can re-write urls to add session
information.

Can this be done? If so, how?

Phill

Current Thread