aboutsummaryrefslogtreecommitdiff
path: root/template/compiler/pages.xsl
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-07-19 14:32:15 +0200
committerAdrian Kummerlaender2014-07-19 14:32:15 +0200
commit55639568a5c4f9f58d38d4f92bb6b8e7d760294e (patch)
treed459e98b6d4ead2a94b6bde9b31efd397d247aee /template/compiler/pages.xsl
parente872033543129071469a0b100c0a36c18a6b519b (diff)
downloadblog.kummerlaender.eu-55639568a5c4f9f58d38d4f92bb6b8e7d760294e.tar
blog.kummerlaender.eu-55639568a5c4f9f58d38d4f92bb6b8e7d760294e.tar.gz
blog.kummerlaender.eu-55639568a5c4f9f58d38d4f92bb6b8e7d760294e.tar.bz2
blog.kummerlaender.eu-55639568a5c4f9f58d38d4f92bb6b8e7d760294e.tar.lz
blog.kummerlaender.eu-55639568a5c4f9f58d38d4f92bb6b8e7d760294e.tar.xz
blog.kummerlaender.eu-55639568a5c4f9f58d38d4f92bb6b8e7d760294e.tar.zst
blog.kummerlaender.eu-55639568a5c4f9f58d38d4f92bb6b8e7d760294e.zip
Reactivated basic page generation
* page template is called by the pages compiler * modified master transformation to match new meta structure * the context variable needed by the context transformation now has to be defined in every template using the transformation ** this is needed to accomodate different input DOM structures
Diffstat (limited to 'template/compiler/pages.xsl')
-rw-r--r--template/compiler/pages.xsl10
1 files changed, 9 insertions, 1 deletions
diff --git a/template/compiler/pages.xsl b/template/compiler/pages.xsl
index f4ada83..dbde8c9 100644
--- a/template/compiler/pages.xsl
+++ b/template/compiler/pages.xsl
@@ -14,12 +14,20 @@
indent="yes"
/>
+<xsl:include href="utility/context.xsl"/>
+
+<xsl:variable name="context" select="/data/meta"/>
+
<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:call-template name="generate_in_context">
+ <xsl:with-param name="input" select="."/>
+ <xsl:with-param name="transformation" select="string('[template/output/page.xsl]')"/>
+ <xsl:with-param name="target" select="concat($context/target/output, '/pages/', @handle)"/>
+ </xsl:call-template>
</xsl:template>
</xsl:stylesheet>