diff options
Diffstat (limited to 'datasource.xsl')
-rw-r--r-- | datasource.xsl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/datasource.xsl b/datasource.xsl new file mode 100644 index 0000000..698ca67 --- /dev/null +++ b/datasource.xsl @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xalan="http://xml.apache.org/xalan" + xmlns:InputXSLT="function.inputxslt.application" + exclude-result-prefixes="xalan InputXSLT" +> + +<xsl:output + method="xml" + omit-xml-declaration="no" + encoding="UTF-8" + indent="yes" +/> + +<xsl:include href="utility/reader.xsl"/> +<xsl:include href="datasource/entry.xsl"/> + +<xsl:template match="data/source"> + <datasource> + <xsl:apply-templates select="@*|node()"/> + </datasource> +</xsl:template> + +<xsl:template match="source/pages"> + <pages> + <xsl:apply-templates select="./*"/> + </pages> +</xsl:template> + +<xsl:template match="file[./extension = '.md']"> + <xsl:call-template name="entry"> + <xsl:with-param name="file" select="."/> + </xsl:call-template> +</xsl:template> + +</xsl:stylesheet> |