aboutsummaryrefslogtreecommitdiff
path: root/source/99_result/page
diff options
context:
space:
mode:
Diffstat (limited to 'source/99_result/page')
-rw-r--r--source/99_result/page/page.xsl32
1 files changed, 32 insertions, 0 deletions
diff --git a/source/99_result/page/page.xsl b/source/99_result/page/page.xsl
new file mode 100644
index 0000000..b703f46
--- /dev/null
+++ b/source/99_result/page/page.xsl
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+>
+
+<xsl:include href="[utility/master.xsl]"/>
+
+<xsl:variable name="meta">
+ <datasource type="main" mode="iterate" source="01_data/pages.xml" target="page"/>
+ <datasource type="support" mode="full" source="02_meta/meta.xml" target="meta"/>
+ <target mode="xpath" value="concat($datasource/page/entry/@handle, '/index.html')"/>
+</xsl:variable>
+
+<xsl:template name="title-text">
+ <xsl:value-of select="/datasource/page/entry/title"/>
+</xsl:template>
+
+<xsl:template match="page/entry">
+ <div class="last article">
+ <h2>
+ <xsl:text>ยป </xsl:text>
+ <a href="/page/{@handle}">
+ <xsl:value-of select="title"/>
+ </a>
+ </h2>
+ <p class="info"/>
+ <xsl:copy-of select="content/*"/>
+ </div>
+</xsl:template>
+
+</xsl:stylesheet>