File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 118
118
<!-- Switch to the appropriate context node -->
119
119
<xsl : for-each select =" $node[1]" >
120
120
<xsl : choose >
121
- <xsl : when test =" $figure.border.div = 1 and h:figcaption" >
121
+ <xsl : when test =" $figure.border.div = 1 and h:figcaption[text()] " >
122
122
<!-- figcaption must be first or last; handle accordingly -->
123
123
<xsl : choose >
124
124
<!-- Only do border box when you've got a nonempty fig caption -->
125
- <xsl : when test =" *[1][self::h:figcaption[text()] ]" >
125
+ <xsl : when test =" *[1][self::h:figcaption]" >
126
126
<xsl : apply-templates select =" h:figcaption" />
127
127
<div class =" border-box" >
128
128
<xsl : apply-templates select =" *[not(self::h:figcaption)]" />
141
141
<xsl : with-param name =" message" >
142
142
<xsl : text >Warning: figcaption for figure </xsl : text >
143
143
<xsl : value-of select =" @id" />
144
- <xsl : text > either missing, empty, or not at beginning or end of figure. Unable to add border box</xsl : text >
144
+ <xsl : text >not at beginning or end of figure. Unable to add border box</xsl : text >
145
145
</xsl : with-param >
146
146
</xsl : call-template >
147
147
<xsl : apply-templates />
You can’t perform that action at this time.
0 commit comments