Pondering those web technologies that may change the future of the world wide web.
10/16/2005; 1:25:20 AM
I'm now reaping the benefits of having an xml weblog. I wanted referrers on each page. But Radio generates static pages, and only the server knows the referrers. I now include the referrers using XInclude:
<xi:include href="/tools/refs.php?url=url" xmlns:xi="http://www.w3.org/2001/XInclude" />
The task of implementing something like this seems a lot of work at first, but it was rather easy. Thanks to the document()
function from XSL:
<xsl:template match="xi:include"> <xsl:apply-templates select="document(@href)" /> </xsl:template>