diff options
Diffstat (limited to 'template/compiler')
-rw-r--r-- | template/compiler/pages.xsl | 10 |
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> |