Skip to content
Snippets Groups Projects
Commit 8f122cd2 authored by Goik Martin's avatar Goik Martin
Browse files

Handling extra SVG link.

parent f8ef024a
No related branches found
No related tags found
No related merge requests found
......@@ -24,11 +24,6 @@
<para>
<uri>
<xsl:attribute name="xlink:href">
<xsl:call-template name="hdm.get.leftmost.of.separator">
<xsl:with-param name="path" select="ancestor::*/@xml:base"/>
<xsl:with-param name="separator" select="'/'"/>
</xsl:call-template>
<xsl:text>/</xsl:text>
<xsl:call-template name="hdm.get.leftmost.of.separator">
<xsl:with-param name="path"
select="parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref"/>
......@@ -43,22 +38,8 @@
<xsl:if test="ends-with(parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref, '.svg')">
<para>
<uri target="_blank">
<xsl:attribute name="xlink:href">
<xsl:call-template name="hdm.get.leftmost.of.separator">
<xsl:with-param name="path" select="ancestor::*/@xml:base"/>
<xsl:with-param name="separator" select="'/'"/>
</xsl:call-template>
<xsl:text>/</xsl:text>
<xsl:call-template name="hdm.get.leftmost.of.separator">
<xsl:with-param name="path"
select="parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref"/>
<xsl:with-param name="separator" select="'.'"/>
</xsl:call-template>
<xsl:text>.svg</xsl:text>
</xsl:attribute>
<xsl:text>Separate SVG image link</xsl:text>
</uri>
<uri xlink:href="{parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref}"
>Separate SVG image link</uri>
</para>
</xsl:if>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment