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 @@ ...@@ -24,11 +24,6 @@
<para> <para>
<uri> <uri>
<xsl:attribute name="xlink:href"> <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:call-template name="hdm.get.leftmost.of.separator">
<xsl:with-param name="path" <xsl:with-param name="path"
select="parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref"/> select="parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref"/>
...@@ -43,22 +38,8 @@ ...@@ -43,22 +38,8 @@
<xsl:if test="ends-with(parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref, '.svg')"> <xsl:if test="ends-with(parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref, '.svg')">
<para> <para>
<uri target="_blank"> <uri xlink:href="{parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref}"
<xsl:attribute name="xlink:href"> >Separate SVG image link</uri>
<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>
</para> </para>
</xsl:if> </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