aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/compiler/pages.xsl25
-rw-r--r--template/datasource/pages.xsl8
2 files changed, 26 insertions, 7 deletions
diff --git a/template/compiler/pages.xsl b/template/compiler/pages.xsl
new file mode 100644
index 0000000..f4ada83
--- /dev/null
+++ b/template/compiler/pages.xsl
@@ -0,0 +1,25 @@
+<?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:variable name="datasources">
+ <file name="pages.xml"/>
+</xsl:variable>
+
+<xsl:template match="datasource[@name = 'pages.xml']/entry">
+ <compile>Compile page: <xsl:value-of select="@handle"/></compile>
+</xsl:template>
+
+</xsl:stylesheet>
diff --git a/template/datasource/pages.xsl b/template/datasource/pages.xsl
index c77513a..5c036c9 100644
--- a/template/datasource/pages.xsl
+++ b/template/datasource/pages.xsl
@@ -10,13 +10,7 @@
<xsl:include href="[utility/datasource.xsl]"/>
<xsl:include href="[utility/formatter.xsl]"/>
-<xsl:template match="source/pages">
- <pages>
- <xsl:apply-templates select="./*"/>
- </pages>
-</xsl:template>
-
-<xsl:template match="file[./extension = '.md']">
+<xsl:template match="source/pages/file[./extension = '.md']">
<entry handle="{./name}">
<xsl:choose>
<xsl:when test="./extension = '.md'">