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

Prohibit separate slide link when already in slide mode

parent 2724d7bf
No related branches found
No related tags found
No related merge requests found
......@@ -27,11 +27,11 @@
</xsl:template>
<xsl:template match="db:figure/db:title">
<xsl:variable name="slideContainerId" select="ancestor::*[contains(@annotations, 'slide')]/@xml:id"/>
<title>
<xsl:copy-of select="text()|*"/>
<xsl:variable name="slideContainerId" select="ancestor::*[contains(@annotations, 'slide')]/@xml:id"/>
<xsl:if test="$slideContainerId">
<xsl:text> </xsl:text>
......@@ -85,7 +85,7 @@
</xsl:if>
</title>
<xsl:if test="ends-with(parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref, '.fig')">
<xsl:if test="not($slideContainerId) and ends-with(parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref, '.fig')">
<para>
<uri>
<xsl:attribute name="xlink:href">
......@@ -104,7 +104,7 @@
</para>
</xsl:if>
<xsl:if test="ends-with(parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref, '.svg')">
<xsl:if test="not($slideContainerId) and ends-with(parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref, '.svg')">
<para>
<uri>
<xsl:attribute name="xlink:href">
......
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