From a1df0a45a4fafa9142b0b6b7bc5a633dce0c6ad8 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 22 Jul 2014 21:04:31 +0200 Subject: 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 --- generate.xsl | 206 +++++++++++++++++++++++++--------------------- source/03_result/page.xsl | 2 +- 2 files changed, 114 insertions(+), 94 deletions(-) diff --git a/generate.xsl b/generate.xsl index f256c9d..eace77a 100644 --- a/generate.xsl +++ b/generate.xsl @@ -15,7 +15,7 @@ indent="yes" /> - + @@ -27,51 +27,126 @@ )/self::generation"/> - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + - - + + - + - - - + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -79,65 +154,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + 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 @@ - + -- cgit v1.2.3