Loading ...
Sorry, an error occurred while loading the content.

Table within a list

Expand Messages
  • CHRISTIE HOLLIS
    I am having issues making a table within a list work properly, or should I say how I would expect it to work. I m new to XSL-FO, so maybe I m expecting the
    Message 1 of 1 , Nov 29, 2004
    • 0 Attachment
      I am having issues making a table within a list work properly, or should I
      say how I would expect it to work. I'm new to XSL-FO, so maybe I'm expecting
      the impossible.

      Once the formatter gets to the table, it aligns the table that I made to be
      my first check box with the list-item-label. I want it to be aligned with
      the list-item-body that it was placed into.

      I am using Treebeard's pdf preview to see how it will be aligned in pdf.

      Any idea why this would happen? Here's a code snippet below, I took some of
      it out to shorten it, so please pardon any syntax errors:

      <fo:list-item space-before="6px">
      <fo:list-item-label start-indent="5px">
      <fo:block>2.</fo:block>
      </fo:list-item-label>
      <fo:list-item-body>
      <fo:block>blah blah blah</fo:block>
      <fo:block>
      <fo:table>
      <fo:table-column column-width="267.5px" />
      <fo:table-column column-width="8px" />
      <fo:table-body>
      <fo:table-row><!--this one aligns correct-->
      <fo:table-cell number-columns-spanned="2">
      <fo:block>words:</fo:block>
      </fo:table-cell>
      </fo:table-row>
      <fo:table-row><!--this one aligns incorrectly-->
      <fo:table-cell>
      <fo:block>
      <xsl:choose>
      <xsl:when test="normalize-space(PARcmdDisqPeriod)='N/A'">
      <!--This table creates a check box using a table as the unicode character
      will not work-->

      <fo:table>
      <fo:table-column column-width="8px"/>
      <fo:table-body>
      <fo:table-row line-height="0.90">
      <fo:table-cell border-start-style="solid" border-before-style="solid"
      border-end-style="solid" border-after-style="solid">
      <fo:block text-align="center">X</fo:block>
      </fo:table-cell>
      </fo:table-row>
      </fo:table-body>
      </fo:table>
      </xsl:when>
      <xsl:otherwise>
      <fo:table>
      <fo:table-column column-width="8px"/>
      <fo:table-body>
      <fo:table-row line-height="0.90">
      <fo:table-cell border-start-style="solid" border-before-style="solid"
      border-end-style="solid" border-after-style="solid">
      <fo:block><fo:leader leader-pattern="space" leader-length="5px"
      /></fo:block>
      </fo:table-cell>
      </fo:table-row>
      </fo:table-body>
      </fo:table>
      </xsl:otherwise>
      </xsl:choose>
      </fo:block>
      </fo:table-cell>
      <fo:table-cell> <fo:block>Not Applicable</fo:block>
      </fo:table-cell>
      </fo:table-row>
      </fo:table-body>
      </fo:table>
      </fo:list-item>

      Thanks all,

      Christie
    Your message has been successfully submitted and would be delivered to recipients shortly.