summaryrefslogtreecommitdiff
path: root/xsl/common.xsl
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-08-23 16:02:34 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-08-23 16:06:05 +0200
commitf9c9aef63c24188c87dbe4a351b2834e2fc0d282 (patch)
tree2557ec019bb4f2833b86481ccb36ede366946086 /xsl/common.xsl
downloadmutti-web-f9c9aef63c24188c87dbe4a351b2834e2fc0d282.tar.gz
mutti-web-f9c9aef63c24188c87dbe4a351b2834e2fc0d282.tar.bz2
mutti-web-f9c9aef63c24188c87dbe4a351b2834e2fc0d282.zip
Add initial layout + pages
Diffstat (limited to 'xsl/common.xsl')
-rw-r--r--xsl/common.xsl34
1 files changed, 34 insertions, 0 deletions
diff --git a/xsl/common.xsl b/xsl/common.xsl
new file mode 100644
index 0000000..7541576
--- /dev/null
+++ b/xsl/common.xsl
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="https://beratung-franzke.de/web-tpl"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+
+ <xsl:include href="navi.xsl" />
+ <xsl:include href="svg.xsl" />
+ <xsl:include href="link.xsl" />
+
+ <xsl:strip-space elements="*"/>
+
+ <xsl:variable name="filename" select="/s:html/@name" />
+ <xsl:variable name="title" select="document('../main.xml')/s:site/s:page[@filename = $filename]/@title" />
+ <xsl:variable name="suffix" select="'.xhtml'" />
+
+ <xsl:output method="xml" indent="yes" name="html"
+ doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
+ doctype-public="-//W3C//DTD XHTML 1.1//EN"
+ cdata-section-elements="script style"
+ media-type="text/html"
+ encoding="UTF-8"
+ />
+
+ <xsl:template match="html:*" mode="html">
+ <xsl:copy copy-namespaces="no">
+ <!--<xsl:element name="{local-name()}">-->
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates mode="html"/>
+ <!--</xsl:element>-->
+ </xsl:copy>
+ </xsl:template>
+</xsl:stylesheet>