docbook-apps

Wrapping table cell content

  • 1.  Wrapping table cell content

    Posted 02-21-2007 19:22
    Hi everyone,

    I'm generating PDFs from Docbook 4.4 documents using the 1.69.1 version of
    the XSL stylesheets. The issue I'm encountering is that my table cells
    contain code, URLs, and other text that is not wrapping. As a result, FOP
    smooshes (technical term) the text together in each cell.

    In my customization layer, I disabled hyphenation at the root level because
    I don't want to hyphenate title or paragraph text.

    <xsl:attribute-set name="root.properties">
    <xsl:attribute name="hyphenate">false</xsl:attribute>
    </xsl:attribute-set>

    I enabled the wrap-option attribute at the table and table cell levels:

    <xsl:template name="table.properties">
    <xsl:attribute name="wrap-option">wrap</xsl:attribute>
    </xsl:template>

    <xsl:template name="table.cell.properties">
    <xsl:attribute name="wrap-option">wrap</xsl:attribute>
    </xsl:template>

    The text continues to jam itself into a single line in each table cell.

    I've searched the docbook-apps archives and Googled the problem, but haven't
    found an answer. Is there another parameter I need to set (or disabled) in
    my customization layer? I noticed the programlisting parameters; but I
    don't have any programlisting elements in my document.

    Thanks in advance.

    Mark

    --

    Mark Peters
    Senior Technical Writer
    Saba Software