aboutsummaryrefslogtreecommitdiff
path: root/source/02_data/pages.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'source/02_data/pages.xsl')
-rw-r--r--source/02_data/pages.xsl18
1 files changed, 4 insertions, 14 deletions
diff --git a/source/02_data/pages.xsl b/source/02_data/pages.xsl
index 4f3002f..85ea8ca 100644
--- a/source/02_data/pages.xsl
+++ b/source/02_data/pages.xsl
@@ -24,20 +24,10 @@
<xsl:template match="files/pages/file[./extension = '.md']">
<entry handle="{./name}">
- <xsl:choose>
- <xsl:when test="./extension = '.md'">
- <xsl:call-template name="formatter">
- <xsl:with-param name="format">/usr/bin/markdown</xsl:with-param>
- <xsl:with-param name="source" select="InputXSLT:read-file(./full)/text()"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="./extension = '.xml'">
- <xsl:copy-of select="InputXSLT:read-file(./full)/*"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="InputXSLT:read-file(./full)/text()"/>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:call-template name="formatter">
+ <xsl:with-param name="format">/usr/bin/markdown</xsl:with-param>
+ <xsl:with-param name="source" select="InputXSLT:read-file(./full)/text()"/>
+ </xsl:call-template>
</entry>
</xsl:template>