aboutsummaryrefslogtreecommitdiff
path: root/src/utility
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-10-12 12:42:11 +0200
committerAdrian Kummerlaender2014-10-12 12:42:11 +0200
commitbd072c48f380aaf25756c72e2d2ed2474ae9e96d (patch)
tree4b08d282395d51049d35b5a2fd118a8ae5288a8c /src/utility
downloadStaticXSLT-bd072c48f380aaf25756c72e2d2ed2474ae9e96d.tar
StaticXSLT-bd072c48f380aaf25756c72e2d2ed2474ae9e96d.tar.gz
StaticXSLT-bd072c48f380aaf25756c72e2d2ed2474ae9e96d.tar.bz2
StaticXSLT-bd072c48f380aaf25756c72e2d2ed2474ae9e96d.tar.lz
StaticXSLT-bd072c48f380aaf25756c72e2d2ed2474ae9e96d.tar.xz
StaticXSLT-bd072c48f380aaf25756c72e2d2ed2474ae9e96d.tar.zst
StaticXSLT-bd072c48f380aaf25756c72e2d2ed2474ae9e96d.zip
Extracted the static site generation framework into BuildXSLT module
* i.e. the `detail` transformation chain of [blog.kummerlaender.eu](https://github.com/KnairdA/blog.kummerlaender.eu/) * added module defintion file `StaticXSLT.xml` * revamped documentation accordingly * added MIT license
Diffstat (limited to 'src/utility')
-rw-r--r--src/utility/datasource.xsl24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/utility/datasource.xsl b/src/utility/datasource.xsl
new file mode 100644
index 0000000..411086a
--- /dev/null
+++ b/src/utility/datasource.xsl
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+>
+
+<xsl:output
+ method="xml"
+ omit-xml-declaration="no"
+ encoding="UTF-8"
+ indent="no"
+/>
+
+<xsl:variable name="root" select="/datasource"/>
+
+<xsl:template match="/">
+ <datasource>
+ <xsl:apply-templates />
+ </datasource>
+</xsl:template>
+
+<xsl:template match="text()|@*"/>
+
+</xsl:stylesheet>