summaryrefslogtreecommitdiff
path: root/xsl/common.xsl
blob: f2e00ec943cd05a50864dd98cc86271629ed6fca (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
<?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" encoding="utf-8"
    cdata-section-elements="script style"
    media-type="application/xhtml+xml"
    doctype-system="about:legacy-compat"
  />

  <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>