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-94f89814c4dfmaster
parent
52e45ed151
commit
d461482de2
|
|
@ -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) > 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) > 0">
|
||||
<xsl:value-of select="./caption"/>
|
||||
</xsl:when>
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue