aboutsummaryrefslogtreecommitdiff
path: root/template/compiler/pages.xsl
blob: dbde8c9bbbc7a31a54ec4a03ae32c3e8766d1d5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?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/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">
	<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>