aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-07-22 21:04:31 +0200
committerAdrian Kummerlaender2014-07-22 21:04:31 +0200
commita1df0a45a4fafa9142b0b6b7bc5a633dce0c6ad8 (patch)
treecc20a9eb9d0869dc17f8c27b2a9ec41ae11b60ad /source
parent9e26e5d35fcfc7c052295efff072577f9fb0d4f4 (diff)
downloadblog.kummerlaender.eu-a1df0a45a4fafa9142b0b6b7bc5a633dce0c6ad8.tar
blog.kummerlaender.eu-a1df0a45a4fafa9142b0b6b7bc5a633dce0c6ad8.tar.gz
blog.kummerlaender.eu-a1df0a45a4fafa9142b0b6b7bc5a633dce0c6ad8.tar.bz2
blog.kummerlaender.eu-a1df0a45a4fafa9142b0b6b7bc5a633dce0c6ad8.tar.lz
blog.kummerlaender.eu-a1df0a45a4fafa9142b0b6b7bc5a633dce0c6ad8.tar.xz
blog.kummerlaender.eu-a1df0a45a4fafa9142b0b6b7bc5a633dce0c6ad8.tar.zst
blog.kummerlaender.eu-a1df0a45a4fafa9142b0b6b7bc5a633dce0c6ad8.zip
Restructured generation logic into separate templates
* root template iterates through the levels and calls the "process" template for each stylesheet * the "process" template handles metadata extraction and main datasource resolution ** calls "compile" template for generation preparation * the "compile" template resolves the support datasources, merges the final datasource and resolves the target path using additional helper templates * actual generation of the result is preformed by the "generate" template as before
Diffstat (limited to 'source')
-rw-r--r--source/03_result/page.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/03_result/page.xsl b/source/03_result/page.xsl
index e3839a7..fc8b3a5 100644
--- a/source/03_result/page.xsl
+++ b/source/03_result/page.xsl
@@ -19,7 +19,7 @@
<xsl:variable name="meta">
<datasource type="main" mode="iterate" source="target/02_data/pages.xml" target="page"/>
<datasource type="support" mode="full" source="source/00_content/meta.xml" target="meta"/>
- <target mode="xpath" value="concat('pages/', xalan:nodeset($input)/datasource/page/entry/@handle)"/>
+ <target mode="xpath" value="concat('pages/', xalan:nodeset($datasource)/datasource/page/entry/@handle)"/>
</xsl:variable>
<xsl:template name="title-text">