aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-09-04 19:39:34 +0200
committerAdrian Kummerlaender2014-09-04 19:39:34 +0200
commit4ba1e1585033643d4c656d5962f12b2a3fdbfb9e (patch)
tree4e124c6974be3083179208ab594129481e5ad086 /source
parent60be999bc36360cabe37a648e6a6b974485b884d (diff)
downloadblog.kummerlaender.eu-4ba1e1585033643d4c656d5962f12b2a3fdbfb9e.tar
blog.kummerlaender.eu-4ba1e1585033643d4c656d5962f12b2a3fdbfb9e.tar.gz
blog.kummerlaender.eu-4ba1e1585033643d4c656d5962f12b2a3fdbfb9e.tar.bz2
blog.kummerlaender.eu-4ba1e1585033643d4c656d5962f12b2a3fdbfb9e.tar.lz
blog.kummerlaender.eu-4ba1e1585033643d4c656d5962f12b2a3fdbfb9e.tar.xz
blog.kummerlaender.eu-4ba1e1585033643d4c656d5962f12b2a3fdbfb9e.tar.zst
blog.kummerlaender.eu-4ba1e1585033643d4c656d5962f12b2a3fdbfb9e.zip
Updated source tree datasource query to be more explicit
* "00_content" directory is now explicitly referenced * added "source_tree" variable to task processing transformation ** changed datasource meta-tag expressions to reference "source_tree" instead of "$root/source"
Diffstat (limited to 'source')
-rw-r--r--source/01_data/articles.xsl2
-rw-r--r--source/01_data/pages.xsl2
-rw-r--r--source/01_data/tags.xsl2
-rw-r--r--source/02_meta/categories.xsl4
4 files changed, 5 insertions, 5 deletions
diff --git a/source/01_data/articles.xsl b/source/01_data/articles.xsl
index 3b3ac14..8737a6a 100644
--- a/source/01_data/articles.xsl
+++ b/source/01_data/articles.xsl
@@ -11,7 +11,7 @@
<xsl:include href="[utility/datasource.xsl]"/>
<xsl:variable name="meta">
- <datasource type="main" mode="expression" source="$root/source/directory[1]/directory" target="files"/>
+ <datasource type="main" mode="expression" source="$source_tree/directory[@name = '00_content']/directory" target="files"/>
<target mode="plain" value="articles.xml"/>
</xsl:variable>
diff --git a/source/01_data/pages.xsl b/source/01_data/pages.xsl
index fe0e54d..32de2bc 100644
--- a/source/01_data/pages.xsl
+++ b/source/01_data/pages.xsl
@@ -11,7 +11,7 @@
<xsl:include href="[utility/datasource.xsl]"/>
<xsl:variable name="meta">
- <datasource type="main" mode="expression" source="$root/source/directory[1]/directory" target="files"/>
+ <datasource type="main" mode="expression" source="$source_tree/directory[@name = '00_content']/directory" target="files"/>
<target mode="plain" value="pages.xml"/>
</xsl:variable>
diff --git a/source/01_data/tags.xsl b/source/01_data/tags.xsl
index bfd227b..c9e4b47 100644
--- a/source/01_data/tags.xsl
+++ b/source/01_data/tags.xsl
@@ -7,7 +7,7 @@
<xsl:include href="[utility/datasource.xsl]"/>
<xsl:variable name="meta">
- <datasource type="main" mode="expression" source="$root/source/directory[1]/directory" target="files"/>
+ <datasource type="main" mode="expression" source="$source_tree/directory[@name = '00_content']/directory" target="files"/>
<target mode="plain" value="tags.xml"/>
</xsl:variable>
diff --git a/source/02_meta/categories.xsl b/source/02_meta/categories.xsl
index c0075b0..9bb1287 100644
--- a/source/02_meta/categories.xsl
+++ b/source/02_meta/categories.xsl
@@ -10,8 +10,8 @@
<xsl:include href="[utility/datasource.xsl]"/>
<xsl:variable name="meta">
- <datasource type="main" mode="expression" source="$root/source/directory[1]/directory" target="files"/>
- <datasource type="support" mode="full" source="01_data/pages.xml" target="pages"/>
+ <datasource type="main" mode="expression" source="$source_tree/directory[@name = '00_content']/directory" target="files"/>
+ <datasource type="support" mode="full" source="01_data/pages.xml" target="pages"/>
<target mode="plain" value="categories.xml"/>
</xsl:variable>