summaryrefslogtreecommitdiff
path: root/xsl/common.xsl
blob: 007d8a222af03c35ae8de552b3c386c19a014ff7 (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
35
36
37
38
39
40
41
42
43
44
<?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:include href="svg.xsl" />
  <xsl:include href="img.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:param name="stylesheet" select="'@import url(&quot;style/style.css&quot;);'" />
  <xsl:param name="version" select="''" />

  <xsl:param name="versioned_jpg" select="'.jpg'" />
  <xsl:param name="versioned_png" select="'.png'" />

  <xsl:output method="xml" indent="no" encoding="utf-8"
    cdata-section-elements="script style"
    media-type="application/xhtml+xml"
    doctype-system="about:legacy-compat"
  />

  <!--
  Removes leading and traling spaces, that we probably need!
  <xsl:template match="text()" mode="html"><xsl:value-of select="normalize-space(.)"/></xsl:template>
  -->

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