summaryrefslogtreecommitdiff
path: root/xsl/common.xsl
blob: be3b856b9d6b7ff48597be51d6259bbcad82aa62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0" 
  exclude-result-prefixes="s"
  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="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:param name="suffix" select="'.xml'" />

  <xsl:output method="xml" indent="yes"
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
    doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
    cdata-section-elements="script style"
    media-type="application/xhtml+xml"
    encoding="UTF-8"
  />

  <xsl:template match="html:*" mode="html">
    <xsl:copy>
    <!--<xsl:element name="{local-name()}">-->
      <xsl:copy-of select="@*"/>
      <xsl:apply-templates mode="html"/>
    <!--</xsl:element>-->
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>