blob: 858f6d8f47e57e065e76bc258fbd8e62323bc7c8 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:col="http://apache.org/cocoon/lenya/collection/1.0"
xmlns:ci="http://apache.org/cocoon/include/1.0">
<xsl:param name="uuid"/>
<xsl:param name="language"/>
<xsl:template match="col:collection">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:choose>
<xsl:when test="@type = 'children'">
<ci:include src="cocoon://modules/collection/collectionWithChildren/{$uuid}/{$language}.xml"
select="*/*"/>
</xsl:when>
<xsl:when test="@type = 'link'">
<ci:include src="{@href}" select="*/*"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="col:document"/>
</xsl:otherwise>
</xsl:choose>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>