aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-09-04 21:31:20 +0200
committerAdrian Kummerlaender2014-09-04 21:31:20 +0200
commit1921be28cc94764b2bd8c26e76d7171440b926ab (patch)
tree41daa20bb94bd2782e5e4871697fe31fe90f3a71
parent4ba1e1585033643d4c656d5962f12b2a3fdbfb9e (diff)
downloadblog.kummerlaender.eu-1921be28cc94764b2bd8c26e76d7171440b926ab.tar
blog.kummerlaender.eu-1921be28cc94764b2bd8c26e76d7171440b926ab.tar.gz
blog.kummerlaender.eu-1921be28cc94764b2bd8c26e76d7171440b926ab.tar.bz2
blog.kummerlaender.eu-1921be28cc94764b2bd8c26e76d7171440b926ab.tar.lz
blog.kummerlaender.eu-1921be28cc94764b2bd8c26e76d7171440b926ab.tar.xz
blog.kummerlaender.eu-1921be28cc94764b2bd8c26e76d7171440b926ab.tar.zst
blog.kummerlaender.eu-1921be28cc94764b2bd8c26e76d7171440b926ab.zip
Moved generation stage stylesheets into "detail" folder
* they are read by FunctionReadFile to and passed to FunctionGenerate as a DOM tree to execute them as if they where located in the parent directory ** this is required so they behave as expected without requiring all paths to be absolute * this change was implemented to make it clear that "make.xsl" is the main generation stylesheet ** additionally this further separates the framework implementation from the site-specific stylesheets and contents
-rw-r--r--detail/list.xsl (renamed from list.xsl)2
-rw-r--r--detail/plan.xsl (renamed from plan.xsl)2
-rw-r--r--detail/process.xsl (renamed from process.xsl)2
-rw-r--r--detail/summarize.xsl (renamed from summarize.xsl)0
-rw-r--r--make.xsl10
5 files changed, 8 insertions, 8 deletions
diff --git a/list.xsl b/detail/list.xsl
index 93585e8..3ba6f94 100644
--- a/list.xsl
+++ b/detail/list.xsl
@@ -13,7 +13,7 @@
indent="no"
/>
-<xsl:include href="utility/datasource.xsl"/>
+<xsl:include href="[utility/datasource.xsl]"/>
<xsl:template name="list">
<xsl:param name="base"/>
diff --git a/plan.xsl b/detail/plan.xsl
index bef6fc5..2479371 100644
--- a/plan.xsl
+++ b/detail/plan.xsl
@@ -15,7 +15,7 @@
indent="no"
/>
-<xsl:include href="utility/datasource.xsl"/>
+<xsl:include href="[utility/datasource.xsl]"/>
<xsl:template name="traverse">
<xsl:param name="source"/>
diff --git a/process.xsl b/detail/process.xsl
index 4010f4b..3ccbd36 100644
--- a/process.xsl
+++ b/detail/process.xsl
@@ -15,7 +15,7 @@
indent="no"
/>
-<xsl:include href="utility/datasource.xsl"/>
+<xsl:include href="[utility/datasource.xsl]"/>
<xsl:variable name="source_tree" select="$root/source"/>
diff --git a/summarize.xsl b/detail/summarize.xsl
index b4e6375..b4e6375 100644
--- a/summarize.xsl
+++ b/detail/summarize.xsl
diff --git a/make.xsl b/make.xsl
index 4b932a7..5df1514 100644
--- a/make.xsl
+++ b/make.xsl
@@ -23,7 +23,7 @@
<xsl:copy-of select="InputXSLT:generate(
$input,
- string($transformation)
+ InputXSLT:read-file(string($transformation))/self::file/node()
)/self::generation/node()"/>
</xsl:template>
@@ -40,27 +40,27 @@
<xsl:variable name="plan_source">
<xsl:call-template name="generate">
<xsl:with-param name="input" select="$list_source"/>
- <xsl:with-param name="transformation">list.xsl</xsl:with-param>
+ <xsl:with-param name="transformation">detail/list.xsl</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="process_source">
<xsl:call-template name="generate">
<xsl:with-param name="input" select="$plan_source"/>
- <xsl:with-param name="transformation">plan.xsl</xsl:with-param>
+ <xsl:with-param name="transformation">detail/plan.xsl</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="summarize_source">
<xsl:call-template name="generate">
<xsl:with-param name="input" select="$process_source"/>
- <xsl:with-param name="transformation">process.xsl</xsl:with-param>
+ <xsl:with-param name="transformation">detail/process.xsl</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="generate">
<xsl:with-param name="input" select="$summarize_source"/>
- <xsl:with-param name="transformation">summarize.xsl</xsl:with-param>
+ <xsl:with-param name="transformation">detail/summarize.xsl</xsl:with-param>
</xsl:call-template>
</xsl:template>