diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-01-03 14:23:15 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-01-03 14:28:59 +0100 |
commit | a805cf0fd1fba12375cf9dc6aabd1720990777b0 (patch) | |
tree | ac8ed4a93ec68e43cddab5058fd3e185277a37c0 /xsl | |
parent | 235127677478959bccac31b39ba073945199eea0 (diff) | |
download | mutti-web-a805cf0fd1fba12375cf9dc6aabd1720990777b0.tar.gz mutti-web-a805cf0fd1fba12375cf9dc6aabd1720990777b0.tar.bz2 mutti-web-a805cf0fd1fba12375cf9dc6aabd1720990777b0.zip |
Remove svg.xsl
Using png directly.
Browsers still suck to much at displaying svg directly.
Diffstat (limited to 'xsl')
-rw-r--r-- | xsl/common.xsl | 1 | ||||
-rw-r--r-- | xsl/layout.xsl | 7 | ||||
-rw-r--r-- | xsl/svg.xsl | 36 |
3 files changed, 0 insertions, 44 deletions
diff --git a/xsl/common.xsl b/xsl/common.xsl index 82bafc8..df348eb 100644 --- a/xsl/common.xsl +++ b/xsl/common.xsl @@ -7,7 +7,6 @@ xmlns:html="http://www.w3.org/1999/xhtml"> <xsl:include href="navi.xsl" /> - <xsl:include href="svg.xsl" /> <xsl:include href="googlemaps.xsl" /> <xsl:include href="link.xsl" /> diff --git a/xsl/layout.xsl b/xsl/layout.xsl index 72b0181..13b0c38 100644 --- a/xsl/layout.xsl +++ b/xsl/layout.xsl @@ -17,18 +17,11 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link rel="stylesheet" type="text/css" href="style/style.css" /> - <!--<script type="text/javascript" src="svg.js"/>--> </head> <body> <div id="header"> <div id="logo"> <img src="checkmark.png" alt="Checkmark"/> - <!-- - <xsl:call-template name="svg"> - <xsl:with-param name="svg-file" select="'checkmark.svg'" /> - <xsl:with-param name="svg-alt" select="'Checkmark'" /> - </xsl:call-template> - --> </div> <h1>Beratung & Controlling</h1> <h2>Angelika Franzke</h2> diff --git a/xsl/svg.xsl b/xsl/svg.xsl deleted file mode 100644 index 2fc8778..0000000 --- a/xsl/svg.xsl +++ /dev/null @@ -1,36 +0,0 @@ -<?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:svg="http://www.w3.org/2000/svg" - xmlns:s="https://beratung-franzke.de/web-tpl"> - - - <xsl:template match="s:svg" mode="html"> - <xsl:call-template name="svg"> - <xsl:with-param name="svg-file" select="@src" /> - <xsl:with-param name="svg-alt" select="@alt" /> - </xsl:call-template> - </xsl:template> - - <xsl:template name="svg"> - <xsl:param name="svg-file" /> - <xsl:param name="svg-alt" /> - - <xsl:variable name="png-file" select="concat(substring-before($svg-file, '.svg'), '.png')" /> - - <img src="{$svg-file}" alt="{$svg-alt}" class="svg" /> - - <object data="{$svg-file}" type="image/svg+xml" class="svg" style="display: none"> - <xsl:attribute name="width"> - <xsl:value-of select="ceiling(document(concat('../', $svg-file))/svg:svg/@width)" /> - </xsl:attribute> - <xsl:attribute name="height"> - <xsl:value-of select="ceiling(document(concat('../', $svg-file))/svg:svg/@height)" /> - </xsl:attribute> - <param name="src" value="{$svg-file}" /> - <img src="{$png-file}" alt="{$svg-alt}" /> - </object> - </xsl:template> - -</xsl:stylesheet> |