Thanks. I hadn't realized there have been so few updates to FOP.
I noticed on a post that to implement a blind table within a template, I should add the following to my customization layer:
<xsl:template name="formal.object"> <xsl:param name="placement" select="'before'"/>
<xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable>
<fo:table table-layout="fixed" width="100%"> <fo:table-column column-number="1"/> <fo:table-body>
<xsl:if test="$placement = 'before'">
<fo:table-row keep-with-next="always">
<xsl:call-template name="formal.object.heading"/>
</fo:table-row>
</xsl:if> <fo:table-row>
<fo:table-cell>
<fo:block id="{$id}"
xsl:use-attribute-sets="formal.object.properties">
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<xsl:if test="$placement != 'before'">
<fo:table-row keep-with-previous="always">
<xsl:call-template name="formal.object.heading"/>
</fo:table-row>
</xsl:if></fo:table-body> </fo:table> </xsl:template>
<xsl:template name="formal.object.heading">
<xsl:param name="title"></xsl:param>
<fo:table-cell>
<fo:block xsl:use-attribute-sets="formal.title.properties">
<xsl:apply-templates select="." mode="object.title.markup"/>
</fo:block>
</fo:table-cell>
</xsl:template>I did so, only to find that it had no effect. By no effect, I mean I looked into the FO file that was generated, and did not see any tables around my figure and captions.
I then thought that perhaps my customization layer was in error somehow, so I created a separate customization layer using only the above template. Still, no effect.
Finally, I modified the formal.xsl stylesheet with this template, and still did have any results.
Clearly, I'm applying something incorrectly. But I'm at a loss as to where to begin. I did notice that, in the formal.xsl template, the formal.object template is very different from the above XSL markup. That is why I wondered if I was working off old material.
I'm happy to provide further information, if that would be helpful. I also freely admit that I'm unsure if this is an XSL issue, appropriate for the DocBook lists, or a FOP issue. But I figured I should start somewhere.
Thanks very much for any assistance,
Dave Shevitz
Chris Bowditch wrote:
David Shevitz wrote:
<snip/>
I understand that if I want to keep my captions with my figures in a given document, I should use a "blind table." However, all the examples I see were posted around 2 years ago (granted I might be looking in the wrong place). I tried using them, but they don't seem to work.
Doesnt matter that its 2 years old, there have been very few releases of FOP in that time. The "blind table" approach should work to keep a figure with FOP. Perhaps you should explain why it doesnt work for you, and we will try to help solve the problem.
<snip/>
Chris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
