XSLT+XInclude = Cool

Doing some client work slinging XML and XSLT in Python, using 4Suite. 4Suite is a really comprehensive package covering SAX, DOM, XSLT, XPath, a whole pile of RDF stuff I’ve not looked at and XInclude. I’ve previously used XInclude as part of the rather convoluted build process for the Versim website. 4Suite goes further than anything else I’ve seen, by having XInclude support within the XSLT processor. How cool is that? It means you can do things like

<xsl:template match="/">
  <html>
    <head>
      <xi:include href="../htmlfragments/prolog.xhtml"/>
    </head>
    <body>
      <xi:include href="../htmlfragmenst/page_header.xhtml"/>

      <xsl:apply-templates />

      <xi:include href="../htmlfragmenst/page_footer.xhtml"/>
    </body>
  </html>
</xsl:template>

It’s fantastic - I’m already wondering how I’m going to manage without it.


Tagged xml, xslt, and xinclude


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired



Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired