Figure caption is now omitted the caption of the image is a single dot ('.').

git-svn-id: https://svn.libreccm.org/ccm/trunk@4499 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2016-12-22 11:12:14 +00:00
parent 52e45ed151
commit d461482de2
2 changed files with 22 additions and 6 deletions

View File

@ -158,6 +158,11 @@
<xsl:with-param name="alt"
tunnel="yes">
<xsl:choose>
<xsl:when test="./caption = ' '
or ./caption=' '
or ./caption='.'">
<xsl:value-of select="''"/>
</xsl:when>
<xsl:when test="string-length(./caption) &gt; 0">
<xsl:value-of select="./caption"/>
</xsl:when>
@ -169,6 +174,11 @@
<xsl:with-param name="title"
tunnel="yes">
<xsl:choose>
<xsl:when test="./caption = ' '
or ./caption=' '
or ./caption='.'">
<xsl:value-of select="''"/>
</xsl:when>
<xsl:when test="string-length(./caption) &gt; 0">
<xsl:value-of select="./caption"/>
</xsl:when>

View File

@ -892,13 +892,19 @@
<xsl:param name="id" select="''"/>
<xsl:param name="class" select="''"/>
<figcaption>
<xsl:call-template name="foundry:process-layouttree-attributes">
<xsl:with-param name="id" select="$id"/>
<xsl:with-param name="class" select="$class"/>
</xsl:call-template>
<xsl:variable name="caption-content">
<xsl:apply-templates/>
</figcaption>
</xsl:variable>
<xsl:if test="normalize-space($caption-content)">
<figcaption>
<xsl:call-template name="foundry:process-layouttree-attributes">
<xsl:with-param name="id" select="$id"/>
<xsl:with-param name="class" select="$class"/>
</xsl:call-template>
<xsl:apply-templates/>
</figcaption>
</xsl:if>
</xsl:template>
<xsl:template match="figure">