← Prev in month ← Prev in thread

Changing floatstyle of figures/tables

From
redlettucemail <>
Date
2011-04-02T10:40:52+00:00
ID
Thread
Changing floatstyle of figures/tables
For FO output of 
a book, when I select one column for body text (instead of two for example), 
I'd like some code to change the floatstyle of figures, tables and examples 
(any formal object) from "before" to "none". I have coded the floatstyle of 
formal objects in XML files - some are "before", some are "none". Can I 
change all these to "none"? I tried the following code, but all I get in the 
PDF is "false" where the figures should be.

 

<!--When there is one-column body text, do not float graphics 
*****test-->   
    <xsl:template 
match="*[@floatstyle = 'before']">
    
<xsl:choose>
      <xsl:when 
test="column.count.body = '1'">

        <xsl:value-of 
select="@floatstyle = 'none'"/>
      
</xsl:when>
      <xsl:otherwise>

        <xsl:value-of 
select="@floatstyle = 'none'"/>
      
</xsl:otherwise>
    </xsl:choose>
  
</xsl:template>
 

Thanks,
Dave Gardiner
← Prev in month ← Prev in thread