From 6150e834e72000dfd4005789d3a1ef9b542802f1 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 3 Sep 2014 21:11:52 +0200 Subject: Revamped transformation layout to remove need for the "01_files" level * "01_files" contained a single "source" transformation which listed the contents of the "00_content" level ** this was unnecessary as the base "list" transformation already lists the contents of all levels * added new "expression" mode to datasource meta tag processing in the task processing transformation ** this expression modes allows for the evaluation of arbitrary XPath statements *** e.g. a query to the results of "list.xsl" * modified base transformation datasource structures to include the level and meta tree * modified all existing content transformations to query the level-tree instead of the deprecated "source.xml" ** i.e. XPath statements ** the main change is that directories are available as "directory" nodes instead of nodes named by the directory name * these changes where implemented to simplify the architecture and to increase flexibility --- source/01_data/articles.xsl | 92 +++++++++++++++++++++++++++++++++++++++++++++ source/01_data/pages.xsl | 36 ++++++++++++++++++ source/01_data/tags.xsl | 26 +++++++++++++ 3 files changed, 154 insertions(+) create mode 100644 source/01_data/articles.xsl create mode 100644 source/01_data/pages.xsl create mode 100644 source/01_data/tags.xsl (limited to 'source/01_data') diff --git a/source/01_data/articles.xsl b/source/01_data/articles.xsl new file mode 100644 index 0000000..8e65f40 --- /dev/null +++ b/source/01_data/articles.xsl @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + highlight --out-format=xhtml --inline-css --style=molokai --fragment --enclose-pre --wrap-simple --syntax= + + + + + + txt + + + + + + + +
+		
+	
+
+ + + + + + + + + + + + + + + + + + + kramdown + + + + + + + <xsl:value-of select="xalan:nodeset($content)/h1"/> + + + + + + + + + + + + + + + + + + + + +
diff --git a/source/01_data/pages.xsl b/source/01_data/pages.xsl new file mode 100644 index 0000000..cdfa6d4 --- /dev/null +++ b/source/01_data/pages.xsl @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + kramdown + + + + + + + <xsl:value-of select="xalan:nodeset($content)/h1"/> + + + + + + + + diff --git a/source/01_data/tags.xsl b/source/01_data/tags.xsl new file mode 100644 index 0000000..bfd227b --- /dev/null +++ b/source/01_data/tags.xsl @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + +
+ + + -- cgit v1.2.3