<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  xmlns:i="http://apache.org/cocoon/include/1.0"
  >
  
  <xsl:param name="pub"/>  
  <xsl:param name="area"/> 
  <xsl:param name="uuid"/>
  <xsl:param name="language"/>
  
  <xsl:template match="xi:include">
    <i:include src="cocoon:/{$pub}/{$area}/{$uuid}/{$language}.content">
      <i:fallback>
        <div id="body">
          <p>
            This document doesn't exist.
          </p>
        </div>
      </i:fallback>
    </i:include>
  </xsl:template>
  
  <xsl:template match="@*|node()" priority="-1">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>

</xsl:stylesheet>