aboutsummaryrefslogtreecommitdiff
path: root/utility/xhtml.xsl
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-09-11 21:09:55 +0200
committerAdrian Kummerlaender2014-09-11 21:09:55 +0200
commit2458ce157f1e2a3fdb023f6779ba47f253463a54 (patch)
tree139e334d3e89c0b56f7b57ff2f91adb59920b7a9 /utility/xhtml.xsl
parent5cd5d02a37d67c489dc755cdf242a8a5e13f4eaa (diff)
downloadblog.kummerlaender.eu-2458ce157f1e2a3fdb023f6779ba47f253463a54.tar
blog.kummerlaender.eu-2458ce157f1e2a3fdb023f6779ba47f253463a54.tar.gz
blog.kummerlaender.eu-2458ce157f1e2a3fdb023f6779ba47f253463a54.tar.bz2
blog.kummerlaender.eu-2458ce157f1e2a3fdb023f6779ba47f253463a54.tar.lz
blog.kummerlaender.eu-2458ce157f1e2a3fdb023f6779ba47f253463a54.tar.xz
blog.kummerlaender.eu-2458ce157f1e2a3fdb023f6779ba47f253463a54.tar.zst
blog.kummerlaender.eu-2458ce157f1e2a3fdb023f6779ba47f253463a54.zip
Fixed XHTML namespace generation
* all datasources are generated as namespace-less XML * the resulting documents have to define the XHTML namespace ** i.e. the article and page contents have to be copied into the XHTML namespace * implemented XHTML copy helper templates * modified page templates accordingly * defined XHTML namespace in the master template
Diffstat (limited to 'utility/xhtml.xsl')
-rw-r--r--utility/xhtml.xsl18
1 files changed, 18 insertions, 0 deletions
diff --git a/utility/xhtml.xsl b/utility/xhtml.xsl
new file mode 100644
index 0000000..7347962
--- /dev/null
+++ b/utility/xhtml.xsl
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+>
+
+<xsl:template match="*" mode="xhtml">
+ <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates select="node()" mode="xhtml"/>
+ </xsl:element>
+</xsl:template>
+
+<xsl:template match="comment() | processing-instruction()" mode="xhtml">
+ <xsl:copy/>
+</xsl:template>
+
+</xsl:stylesheet>