Skip to content

Commit 3ee1427

Browse files
author
p12
committed
images: Strip links from SVG images
The links point to a wrong location because they are resolved relative to the location of the SVG image. Better have no link than to have wrong one, images will be wrapped in image-maps anyway.
1 parent 33e3b07 commit 3ee1427

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

images/fix_svg.xsl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
55
xmlns:str="http://exslt.org/strings"
66
xmlns:svg="http://www.w3.org/2000/svg"
7+
xmlns:xlink="http://www.w3.org/1999/xlink"
78
>
89
<xsl:output indent="yes"
910
method="xml"
@@ -30,6 +31,9 @@
3031
</xsl:attribute>
3132
</xsl:template>
3233

34+
<xsl:template match="//@xlink:href"/>
35+
<xsl:template match="//@xlink:title"/>
36+
3337
<!--<xsl:template match="/svg:svg/@viewBox"/>-->
3438

3539
<xsl:template match="/svg:svg/svg:g/@transform">

0 commit comments

Comments
 (0)