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

constraining block width

Expand Messages
  • Jason
    I m using XSL-FO, specifically FOP to create a PDF form. The form is laid out in a way that is too complex to use multi-column pages. I ve used a table to lay
    Message 1 of 8 , Feb 12, 2004
      I'm using XSL-FO, specifically FOP to create a PDF form. The form is
      laid out in a way that is too complex to use multi-column pages. I've
      used a table to lay out the form, and each table cell contains one or
      more blocks. The problem is that when one of the blocks contains a
      large amount of text, the text runs beyond the edge of the table and
      on top of the next cell.

      My only experience with layout like this is with HTML, and in HTML
      that would not happen. The text in a table cell would never cross over
      onto a neighboring table cell.

      I've looked around, and I don't see a way to limit how wide a block
      can be. I would expect the block to inherrit its maximum width from
      the fact that it is supposed to be contained in a table cell of a
      specific width. But this does not seem to be the case.
    • Chris Bowditch
      ... this is a *feature* unique to FOP. I assume by large amounts of text you mean a long word/URL with no spaces? Have a look at:
      Message 2 of 8 , Feb 13, 2004
        Jason wrote:

        > I'm using XSL-FO, specifically FOP to create a PDF form. The form is
        > laid out in a way that is too complex to use multi-column pages. I've
        > used a table to lay out the form, and each table cell contains one or
        > more blocks. The problem is that when one of the blocks contains a
        > large amount of text, the text runs beyond the edge of the table and
        > on top of the next cell.

        this is a *feature* unique to FOP. I assume by large amounts of text you
        mean a long word/URL with no spaces? Have a look at:

        http://xml.apache.org/fop/faq.html#cells-overflow

        > My only experience with layout like this is with HTML, and in HTML
        > that would not happen. The text in a table cell would never cross over
        > onto a neighboring table cell.
        >
        > I've looked around, and I don't see a way to limit how wide a block
        > can be. I would expect the block to inherrit its maximum width from
        > the fact that it is supposed to be contained in a table cell of a
        > specific width. But this does not seem to be the case.

        You can use block-container if you need to limit the size of blocks.
        Please note, that block-container are only partially implemented in FOP,
        and you will not be able to use it inside a table cell.

        Chris
      • Jason
        Hi, Thanks for your help. I get the feeling from your post that if there are spaces in the text, then I should not be seeing this behavior. And, since there
        Message 3 of 8 , Feb 13, 2004
          Hi,

          Thanks for your help.

          I get the feeling from your post that if there are spaces in the
          text, then I should not be seeing this behavior. And, since there are
          indeed spaces in my text, I think I might have a problem in my
          template.

          I will paste the template below, and you can also see what the
          result look like at http://elluzion.net/img/badTable.jpg

          If anyone could take a look and see if there are glaring errors,
          I'd be very grateful. I'm still learning this stuff as I go.

          ----------------------

          <xsl:template name="adviceContolledDrugAndRefillMulti">
          <fo:table inline-progression-dimension="8in" table-layout="fixed">
          <fo:table-column column-width="0.50in"/>
          <fo:table-column column-width="5.55in"/>
          <fo:table-column column-width="1.95in"/>
          <fo:table-body>
          <fo:table-row line-height="10pt" text-align="start"
          vertical-align="middle">
          <fo:table-cell number-columns-spanned="1" padding-left="0mm"
          padding-top="2mm" vertical-align="middle">
          <fo:block font-size="10pt">
          <xsl:value-of select="concat('RX#', INDEX)"/>
          </fo:block>
          </fo:table-cell>
          <fo:table-cell number-columns-spanned="1" padding-left="4mm"
          padding-top="1mm">
          <fo:block font-family="Times" font-weight="normal"
          font-style="italic" font-size="10pt" text-align="start">
          <fo:table inline-progression-dimension="8in"
          table-layout="fixed" space-after.optimum="2mm" >
          <fo:table-column />
          <fo:table-body>
          <fo:table-row line-height="13pt" text-align="start"
          vertical-align="middle" keep-with-next="always">
          <fo:table-cell number-columns-spanned="1"
          padding-left="0mm" padding-top="1mm">
          <fo:block font-family="Times" font-weight="bold"
          font-size="13pt">
          <xsl:value-of select="MEDICATION/LINE1"/>
          </fo:block>
          </fo:table-cell>
          </fo:table-row>
          <fo:table-row line-height="13pt" text-align="start"
          vertical-align="middle" keep-with-next="always">
          <fo:table-cell number-columns-spanned="1"
          padding-left="0mm" padding-top="1mm">
          <fo:block font-family="Times" font-weight="bold"
          font-size="13pt">
          <xsl:value-of select="MEDICATION/LINE2"/>
          </fo:block>
          </fo:table-cell>
          </fo:table-row>
          <fo:table-row line-height="13pt" text-align="start"
          vertical-align="middle" keep-with-next="always">
          <fo:table-cell number-columns-spanned="1"
          padding-left="0mm" padding-top="1mm">
          <fo:block font-family="Times" font-weight="bold"
          font-size="13pt">
          <xsl:value-of select="MEDICATION/LINE3"/>
          </fo:block>
          </fo:table-cell>
          </fo:table-row>
          <fo:table-row line-height="13pt" text-align="start"
          vertical-align="middle" keep-with-next="always">
          <fo:table-cell number-columns-spanned="1"
          padding-left="0mm" padding-top="1mm">
          <fo:block font-family="Times" font-weight="bold"
          font-size="13pt">
          <xsl:value-of select="MEDICATION/LINE4"/>
          </fo:block>
          </fo:table-cell>
          </fo:table-row>
          <fo:table-row line-height="13pt" text-align="start"
          vertical-align="middle" keep-with-next="always">
          <fo:table-cell number-columns-spanned="1"
          padding-left="0mm" padding-top="1mm">
          <fo:block font-family="Times" font-weight="bold"
          font-size="13pt">
          <xsl:value-of select="MEDICATION/LINE5"/>
          </fo:block>
          </fo:table-cell>
          </fo:table-row>
          </fo:table-body>
          </fo:table>
          </fo:block>
          </fo:table-cell>
          <fo:table-cell number-columns-spanned="1" padding-left="2mm"
          padding-top="1mm">
          <fo:table inline-progression-dimension="1.87in"
          table-layout="fixed">
          <fo:table-column column-width="1.87in"/>
          <fo:table-body>
          <fo:table-row line-height="13pt" text-align="start"
          vertical-align="middle" keep-with-next="always">
          <fo:table-cell number-columns-spanned="1"
          padding-left="1mm" padding-top="1mm">
          <xsl:call-template name="AddBorder"/>
          <fo:block font-family="Times" font-weight="bold"
          font-size="12pt" padding-top="2mm" text-align="start"
          space-after.optimum="2mm">
          <xsl:value-of select="'SUBSTITUTION '"/>
          <fo:inline text-decoration="underline"
          font-weight="normal" padding-left="1mm" padding-right="1mm">
          <xsl:value-of select="MEDICATION/SUBSTITUTION"/>
          </fo:inline>
          </fo:block>
          <fo:block font-family="Times" font-weight="bold"
          font-size="12pt" text-align="start" space-after.optimum="2mm" >
          <xsl:value-of select="'REFILL '"/>
          <fo:inline text-decoration="underline"
          font-weight="normal" padding-left="2mm" padding-right="2mm">
          <xsl:value-of
          select="MEDICATION/REFILL"/></fo:inline ><fo:inline padding-left="2mm"
          font-weight="normal" ><xsl:text> Times</xsl:text>
          </fo:inline>
          </fo:block>
          </fo:table-cell>
          </fo:table-row>
          </fo:table-body>
          </fo:table>
          </fo:table-cell>
          </fo:table-row>
          <fo:table-row line-height="8pt" text-align="start"
          vertical-align="bottom" keep-with-next="always" >
          <fo:table-cell text-align="center" number-columns-spanned="3"
          padding-left="5mm" padding-top="1mm">
          <fo:block font-size="8pt" font-weight="normal" >
          <xsl:call-template name="addFontColorAndShow">
          <xsl:with-param name="val" select="COMMENT"/>
          </xsl:call-template>
          </fo:block>
          </fo:table-cell>
          </fo:table-row>
          <fo:table-row line-height="13pt" text-align="start"
          vertical-align="middle" keep-with-next="always">
          <fo:table-cell number-columns-spanned="3" padding-left="5mm"
          padding-top="1mm">
          <fo:block line-height="0.5pt" space-before.optimum="-0.5mm"
          font-size="1pt">
          <fo:leader leader-pattern="dots" leader-length="7.75in"
          leader-alignment="reference-area" rule-style="solid"
          rule-thickness="0.5pt" color="black"/>
          </fo:block>
          </fo:table-cell>
          </fo:table-row>
          </fo:table-body>
          </fo:table>
          </xsl:template>

          --- In XSL-FO@yahoogroups.com, Chris Bowditch <bowditch_chris@h...>
          wrote:
          > Jason wrote:
          >
          > > I'm using XSL-FO, specifically FOP to create a PDF form. The form
          is
          > > laid out in a way that is too complex to use multi-column pages.
          I've
          > > used a table to lay out the form, and each table cell contains
          one or
          > > more blocks. The problem is that when one of the blocks contains a
          > > large amount of text, the text runs beyond the edge of the table
          and
          > > on top of the next cell.
          >
          > this is a *feature* unique to FOP. I assume by large amounts of text
          you
          > mean a long word/URL with no spaces? Have a look at:
          >
          > http://xml.apache.org/fop/faq.html#cells-overflow
          >
          > > My only experience with layout like this is with HTML, and in HTML
          > > that would not happen. The text in a table cell would never cross
          over
          > > onto a neighboring table cell.
          > >
          > > I've looked around, and I don't see a way to limit how wide a
          block
          > > can be. I would expect the block to inherrit its maximum width
          from
          > > the fact that it is supposed to be contained in a table cell of a
          > > specific width. But this does not seem to be the case.
          >
          > You can use block-container if you need to limit the size of
          blocks.
          > Please note, that block-container are only partially implemented in
          FOP,
          > and you will not be able to use it inside a table cell.
          >
          > Chris
        • Jason
          Hello again, Please ignore my last post. I solved my problem. For some reason, I had set the inner table s inline-progression-dimension to 8 inches. Which was
          Message 4 of 8 , Feb 13, 2004
            Hello again,

            Please ignore my last post. I solved my problem. For some reason, I
            had set the inner table's inline-progression-dimension to 8 inches.
            Which was way too wide.

            Can someone explain what the inline-progression-dimension means?

            Otherwise, thank you very much for your help.

            --- In XSL-FO@yahoogroups.com, "Jason" <jason@e...> wrote:
            > Hi,
            >
            > Thanks for your help.
            >
            > I get the feeling from your post that if there are spaces in the
            > text, then I should not be seeing this behavior. And, since there are
            > indeed spaces in my text, I think I might have a problem in my
            > template.
            >
            > I will paste the template below, and you can also see what the
            > result look like at http://elluzion.net/img/badTable.jpg
            >
            > If anyone could take a look and see if there are glaring errors,
            > I'd be very grateful. I'm still learning this stuff as I go.
            >
            > ----------------------
            >
            > <xsl:template name="adviceContolledDrugAndRefillMulti">
            > <fo:table inline-progression-dimension="8in" table-layout="fixed">
            > <fo:table-column column-width="0.50in"/>
            > <fo:table-column column-width="5.55in"/>
            > <fo:table-column column-width="1.95in"/>
            > <fo:table-body>
            > <fo:table-row line-height="10pt" text-align="start"
            > vertical-align="middle">
            > <fo:table-cell number-columns-spanned="1" padding-left="0mm"
            > padding-top="2mm" vertical-align="middle">
            > <fo:block font-size="10pt">
            > <xsl:value-of select="concat('RX#', INDEX)"/>
            > </fo:block>
            > </fo:table-cell>
            > <fo:table-cell number-columns-spanned="1" padding-left="4mm"
            > padding-top="1mm">
            > <fo:block font-family="Times" font-weight="normal"
            > font-style="italic" font-size="10pt" text-align="start">
            > <fo:table inline-progression-dimension="8in"
            > table-layout="fixed" space-after.optimum="2mm" >
            > <fo:table-column />
            > <fo:table-body>
            > <fo:table-row line-height="13pt" text-align="start"
            > vertical-align="middle" keep-with-next="always">
            > <fo:table-cell number-columns-spanned="1"
            > padding-left="0mm" padding-top="1mm">
            > <fo:block font-family="Times" font-weight="bold"
            > font-size="13pt">
            > <xsl:value-of select="MEDICATION/LINE1"/>
            > </fo:block>
            > </fo:table-cell>
            > </fo:table-row>
            > <fo:table-row line-height="13pt" text-align="start"
            > vertical-align="middle" keep-with-next="always">
            > <fo:table-cell number-columns-spanned="1"
            > padding-left="0mm" padding-top="1mm">
            > <fo:block font-family="Times" font-weight="bold"
            > font-size="13pt">
            > <xsl:value-of select="MEDICATION/LINE2"/>
            > </fo:block>
            > </fo:table-cell>
            > </fo:table-row>
            > <fo:table-row line-height="13pt" text-align="start"
            > vertical-align="middle" keep-with-next="always">
            > <fo:table-cell number-columns-spanned="1"
            > padding-left="0mm" padding-top="1mm">
            > <fo:block font-family="Times" font-weight="bold"
            > font-size="13pt">
            > <xsl:value-of select="MEDICATION/LINE3"/>
            > </fo:block>
            > </fo:table-cell>
            > </fo:table-row>
            > <fo:table-row line-height="13pt" text-align="start"
            > vertical-align="middle" keep-with-next="always">
            > <fo:table-cell number-columns-spanned="1"
            > padding-left="0mm" padding-top="1mm">
            > <fo:block font-family="Times" font-weight="bold"
            > font-size="13pt">
            > <xsl:value-of select="MEDICATION/LINE4"/>
            > </fo:block>
            > </fo:table-cell>
            > </fo:table-row>
            > <fo:table-row line-height="13pt" text-align="start"
            > vertical-align="middle" keep-with-next="always">
            > <fo:table-cell number-columns-spanned="1"
            > padding-left="0mm" padding-top="1mm">
            > <fo:block font-family="Times" font-weight="bold"
            > font-size="13pt">
            > <xsl:value-of select="MEDICATION/LINE5"/>
            > </fo:block>
            > </fo:table-cell>
            > </fo:table-row>
            > </fo:table-body>
            > </fo:table>
            > </fo:block>
            > </fo:table-cell>
            > <fo:table-cell number-columns-spanned="1" padding-left="2mm"
            > padding-top="1mm">
            > <fo:table inline-progression-dimension="1.87in"
            > table-layout="fixed">
            > <fo:table-column column-width="1.87in"/>
            > <fo:table-body>
            > <fo:table-row line-height="13pt" text-align="start"
            > vertical-align="middle" keep-with-next="always">
            > <fo:table-cell number-columns-spanned="1"
            > padding-left="1mm" padding-top="1mm">
            > <xsl:call-template name="AddBorder"/>
            > <fo:block font-family="Times" font-weight="bold"
            > font-size="12pt" padding-top="2mm" text-align="start"
            > space-after.optimum="2mm">
            > <xsl:value-of select="'SUBSTITUTION '"/>
            > <fo:inline text-decoration="underline"
            > font-weight="normal" padding-left="1mm" padding-right="1mm">
            > <xsl:value-of select="MEDICATION/SUBSTITUTION"/>
            > </fo:inline>
            > </fo:block>
            > <fo:block font-family="Times" font-weight="bold"
            > font-size="12pt" text-align="start" space-after.optimum="2mm" >
            > <xsl:value-of select="'REFILL '"/>
            > <fo:inline text-decoration="underline"
            > font-weight="normal" padding-left="2mm" padding-right="2mm">
            > <xsl:value-of
            > select="MEDICATION/REFILL"/></fo:inline ><fo:inline padding-left="2mm"
            > font-weight="normal" ><xsl:text> Times</xsl:text>
            > </fo:inline>
            > </fo:block>
            > </fo:table-cell>
            > </fo:table-row>
            > </fo:table-body>
            > </fo:table>
            > </fo:table-cell>
            > </fo:table-row>
            > <fo:table-row line-height="8pt" text-align="start"
            > vertical-align="bottom" keep-with-next="always" >
            > <fo:table-cell text-align="center" number-columns-spanned="3"
            > padding-left="5mm" padding-top="1mm">
            > <fo:block font-size="8pt" font-weight="normal" >
            > <xsl:call-template name="addFontColorAndShow">
            > <xsl:with-param name="val" select="COMMENT"/>
            > </xsl:call-template>
            > </fo:block>
            > </fo:table-cell>
            > </fo:table-row>
            > <fo:table-row line-height="13pt" text-align="start"
            > vertical-align="middle" keep-with-next="always">
            > <fo:table-cell number-columns-spanned="3" padding-left="5mm"
            > padding-top="1mm">
            > <fo:block line-height="0.5pt" space-before.optimum="-0.5mm"
            > font-size="1pt">
            > <fo:leader leader-pattern="dots" leader-length="7.75in"
            > leader-alignment="reference-area" rule-style="solid"
            > rule-thickness="0.5pt" color="black"/>
            > </fo:block>
            > </fo:table-cell>
            > </fo:table-row>
            > </fo:table-body>
            > </fo:table>
            > </xsl:template>
            >
            > --- In XSL-FO@yahoogroups.com, Chris Bowditch <bowditch_chris@h...>
            > wrote:
            > > Jason wrote:
            > >
            > > > I'm using XSL-FO, specifically FOP to create a PDF form. The form
            > is
            > > > laid out in a way that is too complex to use multi-column pages.
            > I've
            > > > used a table to lay out the form, and each table cell contains
            > one or
            > > > more blocks. The problem is that when one of the blocks contains a
            > > > large amount of text, the text runs beyond the edge of the table
            > and
            > > > on top of the next cell.
            > >
            > > this is a *feature* unique to FOP. I assume by large amounts of text
            > you
            > > mean a long word/URL with no spaces? Have a look at:
            > >
            > > http://xml.apache.org/fop/faq.html#cells-overflow
            > >
            > > > My only experience with layout like this is with HTML, and in HTML
            > > > that would not happen. The text in a table cell would never cross
            > over
            > > > onto a neighboring table cell.
            > > >
            > > > I've looked around, and I don't see a way to limit how wide a
            > block
            > > > can be. I would expect the block to inherrit its maximum width
            > from
            > > > the fact that it is supposed to be contained in a table cell of a
            > > > specific width. But this does not seem to be the case.
            > >
            > > You can use block-container if you need to limit the size of
            > blocks.
            > > Please note, that block-container are only partially implemented in
            > FOP,
            > > and you will not be able to use it inside a table cell.
            > >
            > > Chris
          • Chris Bowditch
            ... If you are dealing with just plain text in table cells, then spaces are usually sufficient to ensure the text is wrapped at the end of the cell. ... The
            Message 5 of 8 , Feb 13, 2004
              Jason wrote:

              > I get the feeling from your post that if there are spaces in the
              > text, then I should not be seeing this behavior. And, since there are
              > indeed spaces in my text, I think I might have a problem in my
              > template.

              If you are dealing with just plain text in table cells, then spaces are
              usually sufficient to ensure the text is wrapped at the end of the cell.

              > I will paste the template below, and you can also see what the
              > result look like at http://elluzion.net/img/badTable.jpg
              >
              > If anyone could take a look and see if there are glaring errors,
              > I'd be very grateful. I'm still learning this stuff as I go.

              The situation is a little more complex than you described. You have
              nested tables in cells of an outer table. The width of the inner table
              in row 1 col 2 of the outer table is defined as 8inches. The width of
              the second column in the outer table is only 5.55 inches. Reduce the
              width of the inner table and the problem should go away.

              Chris

              <snip/>
            • Chris Bowditch
              ... another way to say width. the terms inline-progression-dimension (IPD) and block-progression-dimension (BPD) are used in XSL-FO instead of width and height
              Message 6 of 8 , Feb 13, 2004
                Jason wrote:

                > Hello again,
                >
                > Please ignore my last post. I solved my problem. For some reason, I
                > had set the inner table's inline-progression-dimension to 8 inches.
                > Which was way too wide.
                >
                > Can someone explain what the inline-progression-dimension means?

                another way to say width. the terms inline-progression-dimension (IPD)
                and block-progression-dimension (BPD) are used in XSL-FO instead of
                width and height because if reference-orientation is set to say 90
                degrees, width and height getted swapped around, but IPD and BPD are
                fixed directions.

                <snip/>

                Chris
              • Victor Vishnyakov
                Hi, Inline-progression-dimension is the width in direction of the text letters are writing ( left to right for Europe and America ) Block-progression-dimension
                Message 7 of 8 , Feb 13, 2004
                  Hi,
                  Inline-progression-dimension is the width in direction of the text
                  letters are writing ( left to right for Europe and America )
                  Block-progression-dimension is the height in direction of the text
                  lines are writing ( top to bottom for Europe and America )

                  Or in other words
                  Inlines are growing into the Inline-progression-dimension
                  Blocks are growing into the Block-progression-dimension


                  This is the way to make stylesheets language independent.


                  If you are using Engish only:
                  Inline-progression-dimension = width
                  block-progression-dimension = height


                  Regards,
                  Victor Vishnyakov



                  > -----Original Message-----
                  > From: Jason [mailto:jason@...]
                  > Sent: Friday, February 13, 2004 4:19 PM
                  > To: XSL-FO@yahoogroups.com
                  > Subject: [XSL-FO] Re: constraining block width
                  >
                  >
                  > Hello again,
                  >
                  > Please ignore my last post. I solved my problem. For some
                  > reason, I had set the inner table's
                  > inline-progression-dimension to 8 inches. Which was way too wide.
                  >
                  > Can someone explain what the inline-progression-dimension means?
                  >
                  > Otherwise, thank you very much for your help.
                  >
                  > --- In XSL-FO@yahoogroups.com, "Jason" <jason@e...> wrote:
                  > > Hi,
                  > >
                  > > Thanks for your help.
                  > >
                  > > I get the feeling from your post that if there are
                  > spaces in the
                  > > text, then I should not be seeing this behavior. And, since
                  > there are
                  > > indeed spaces in my text, I think I might have a problem in my
                  > > template.
                  > >
                  > > I will paste the template below, and you can also see what the
                  > > result look like at http://elluzion.net/img/badTable.jpg
                  > >
                  > > If anyone could take a look and see if there are
                  > glaring errors,
                  > > I'd be very grateful. I'm still learning this stuff as I go.
                  > >
                  > > ----------------------
                  > >
                  > > <xsl:template name="adviceContolledDrugAndRefillMulti">
                  > > <fo:table inline-progression-dimension="8in" table-layout="fixed">
                  > > <fo:table-column column-width="0.50in"/>
                  > > <fo:table-column column-width="5.55in"/>
                  > > <fo:table-column column-width="1.95in"/>
                  > > <fo:table-body>
                  > > <fo:table-row line-height="10pt" text-align="start"
                  > > vertical-align="middle">
                  > > <fo:table-cell number-columns-spanned="1"
                  > padding-left="0mm"
                  > > padding-top="2mm" vertical-align="middle">
                  > > <fo:block font-size="10pt">
                  > > <xsl:value-of select="concat('RX#', INDEX)"/>
                  > > </fo:block>
                  > > </fo:table-cell>
                  > > <fo:table-cell number-columns-spanned="1"
                  > padding-left="4mm"
                  > > padding-top="1mm">
                  > > <fo:block font-family="Times" font-weight="normal"
                  > > font-style="italic" font-size="10pt" text-align="start">
                  > > <fo:table inline-progression-dimension="8in"
                  > > table-layout="fixed" space-after.optimum="2mm" >
                  > > <fo:table-column />
                  > > <fo:table-body>
                  > > <fo:table-row line-height="13pt" text-align="start"
                  > > vertical-align="middle" keep-with-next="always">
                  > > <fo:table-cell number-columns-spanned="1"
                  > > padding-left="0mm" padding-top="1mm">
                  > > <fo:block font-family="Times"
                  > font-weight="bold"
                  > > font-size="13pt">
                  > > <xsl:value-of select="MEDICATION/LINE1"/>
                  > > </fo:block>
                  > > </fo:table-cell>
                  > > </fo:table-row>
                  > > <fo:table-row line-height="13pt" text-align="start"
                  > > vertical-align="middle" keep-with-next="always">
                  > > <fo:table-cell number-columns-spanned="1"
                  > > padding-left="0mm" padding-top="1mm">
                  > > <fo:block font-family="Times"
                  > font-weight="bold"
                  > > font-size="13pt">
                  > > <xsl:value-of select="MEDICATION/LINE2"/>
                  > > </fo:block>
                  > > </fo:table-cell>
                  > > </fo:table-row>
                  > > <fo:table-row line-height="13pt" text-align="start"
                  > > vertical-align="middle" keep-with-next="always">
                  > > <fo:table-cell number-columns-spanned="1"
                  > > padding-left="0mm" padding-top="1mm">
                  > > <fo:block font-family="Times"
                  > font-weight="bold"
                  > > font-size="13pt">
                  > > <xsl:value-of select="MEDICATION/LINE3"/>
                  > > </fo:block>
                  > > </fo:table-cell>
                  > > </fo:table-row>
                  > > <fo:table-row line-height="13pt" text-align="start"
                  > > vertical-align="middle" keep-with-next="always">
                  > > <fo:table-cell number-columns-spanned="1"
                  > > padding-left="0mm" padding-top="1mm">
                  > > <fo:block font-family="Times"
                  > font-weight="bold"
                  > > font-size="13pt">
                  > > <xsl:value-of select="MEDICATION/LINE4"/>
                  > > </fo:block>
                  > > </fo:table-cell>
                  > > </fo:table-row>
                  > > <fo:table-row line-height="13pt" text-align="start"
                  > > vertical-align="middle" keep-with-next="always">
                  > > <fo:table-cell number-columns-spanned="1"
                  > > padding-left="0mm" padding-top="1mm">
                  > > <fo:block font-family="Times" font-weight="bold"
                  > > font-size="13pt">
                  > > <xsl:value-of select="MEDICATION/LINE5"/>
                  > > </fo:block>
                  > > </fo:table-cell>
                  > > </fo:table-row>
                  > > </fo:table-body>
                  > > </fo:table>
                  > > </fo:block>
                  > > </fo:table-cell>
                  > > <fo:table-cell number-columns-spanned="1"
                  > padding-left="2mm"
                  > > padding-top="1mm">
                  > > <fo:table inline-progression-dimension="1.87in"
                  > > table-layout="fixed">
                  > > <fo:table-column column-width="1.87in"/>
                  > > <fo:table-body>
                  > > <fo:table-row line-height="13pt" text-align="start"
                  > > vertical-align="middle" keep-with-next="always">
                  > > <fo:table-cell number-columns-spanned="1"
                  > > padding-left="1mm" padding-top="1mm">
                  > > <xsl:call-template name="AddBorder"/>
                  > > <fo:block font-family="Times" font-weight="bold"
                  > > font-size="12pt" padding-top="2mm" text-align="start"
                  > > space-after.optimum="2mm">
                  > > <xsl:value-of select="'SUBSTITUTION '"/>
                  > > <fo:inline text-decoration="underline"
                  > > font-weight="normal" padding-left="1mm" padding-right="1mm">
                  > > <xsl:value-of
                  > select="MEDICATION/SUBSTITUTION"/>
                  > > </fo:inline>
                  > > </fo:block>
                  > > <fo:block font-family="Times" font-weight="bold"
                  > > font-size="12pt" text-align="start" space-after.optimum="2mm" >
                  > > <xsl:value-of select="'REFILL '"/>
                  > > <fo:inline text-decoration="underline"
                  > > font-weight="normal" padding-left="2mm" padding-right="2mm">
                  > > <xsl:value-of
                  > > select="MEDICATION/REFILL"/></fo:inline ><fo:inline
                  > padding-left="2mm"
                  > > font-weight="normal" ><xsl:text> Times</xsl:text>
                  > > </fo:inline>
                  > > </fo:block>
                  > > </fo:table-cell>
                  > > </fo:table-row>
                  > > </fo:table-body>
                  > > </fo:table>
                  > > </fo:table-cell>
                  > > </fo:table-row>
                  > > <fo:table-row line-height="8pt" text-align="start"
                  > > vertical-align="bottom" keep-with-next="always" >
                  > > <fo:table-cell text-align="center"
                  > number-columns-spanned="3"
                  > > padding-left="5mm" padding-top="1mm">
                  > > <fo:block font-size="8pt" font-weight="normal" >
                  > > <xsl:call-template name="addFontColorAndShow">
                  > > <xsl:with-param name="val" select="COMMENT"/>
                  > > </xsl:call-template>
                  > > </fo:block>
                  > > </fo:table-cell>
                  > > </fo:table-row>
                  > > <fo:table-row line-height="13pt" text-align="start"
                  > > vertical-align="middle" keep-with-next="always">
                  > > <fo:table-cell number-columns-spanned="3" padding-left="5mm"
                  > > padding-top="1mm">
                  > > <fo:block line-height="0.5pt"
                  > space-before.optimum="-0.5mm"
                  > > font-size="1pt">
                  > > <fo:leader leader-pattern="dots" leader-length="7.75in"
                  > > leader-alignment="reference-area" rule-style="solid"
                  > > rule-thickness="0.5pt" color="black"/>
                  > > </fo:block>
                  > > </fo:table-cell>
                  > > </fo:table-row>
                  > > </fo:table-body>
                  > > </fo:table>
                  > > </xsl:template>
                  > >
                  > > --- In XSL-FO@yahoogroups.com, Chris Bowditch <bowditch_chris@h...>
                  > > wrote:
                  > > > Jason wrote:
                  > > >
                  > > > > I'm using XSL-FO, specifically FOP to create a PDF
                  > form. The form
                  > > is
                  > > > > laid out in a way that is too complex to use multi-column pages.
                  > > I've
                  > > > > used a table to lay out the form, and each table cell contains
                  > > one or
                  > > > > more blocks. The problem is that when one of the blocks
                  > contains a
                  > > > > large amount of text, the text runs beyond the edge of the table
                  > > and
                  > > > > on top of the next cell.
                  > > >
                  > > > this is a *feature* unique to FOP. I assume by large
                  > amounts of text
                  > > you
                  > > > mean a long word/URL with no spaces? Have a look at:
                  > > >
                  > > > http://xml.apache.org/fop/faq.html#cells-overflow
                  > > >
                  > > > > My only experience with layout like this is with HTML,
                  > and in HTML
                  > > > > that would not happen. The text in a table cell would
                  > never cross
                  > > over
                  > > > > onto a neighboring table cell.
                  > > > >
                  > > > > I've looked around, and I don't see a way to limit how wide a
                  > > block
                  > > > > can be. I would expect the block to inherrit its maximum width
                  > > from
                  > > > > the fact that it is supposed to be contained in a table
                  > cell of a
                  > > > > specific width. But this does not seem to be the case.
                  > > >
                  > > > You can use block-container if you need to limit the size of
                  > > blocks.
                  > > > Please note, that block-container are only partially
                  > implemented in
                  > > FOP,
                  > > > and you will not be able to use it inside a table cell.
                  > > >
                  > > > Chris
                  >
                  >
                  >
                  > ------------------------ Yahoo! Groups Sponsor
                  > ---------------------~--> Send the freshest Valentine's
                  > flowers with a FREE vase from only $29.99! Shipped direct
                  > from the grower with a 7 day freshness guarantee and prices
                  > so low you save 30-55% off retail!
                  > http://us.click.yahoo.com/> _iAw9B/xdlHAA/3jkFAA/9rHolB/TM
                  >
                  >
                  > --------------------------------------------------------------
                  > -------~->
                  >
                  >
                  > Yahoo! Groups Links
                  >
                  >
                  >
                  >
                  >
                  >
                • Peter Billen
                  I was trying to make a table like this: +-------+-----------------+ + bla + this is a test + + bluuu + another one + + ... + .... +
                  Message 8 of 8 , Feb 13, 2004
                    I was trying to make a table like this:

                    +-------+-----------------+
                    + bla + this is a test +
                    + bluuu + another one +
                    + ... + .... +
                    +-------+-----------------+

                    where the first column uses as less space as needed.

                    This is my code:

                    <?xml version="1.0" encoding="iso-8859-1"?>

                    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
                    <fo:layout-master-set>
                    <fo:simple-page-master master-name="my-page">
                    <fo:region-body margin="1in"/>
                    </fo:simple-page-master>
                    </fo:layout-master-set>

                    <fo:page-sequence master-reference="my-page">
                    <fo:flow flow-name="xsl-region-body">
                    <fo:table>
                    <fo:table-column column-width="0%"/>
                    <fo:table-column column-width="100%"/>

                    <fo:table-body>
                    <fo:table-row>
                    <fo:table-cell>

                    <fo:block>bla</fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                    <fo:block>this is a
                    test</fo:block>
                    </fo:table-cell>
                    </fo:table-row>
                    <fo:table-row>
                    <fo:table-cell>

                    <fo:block>bluu</fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                    <fo:block>another
                    one</fo:block>
                    </fo:table-cell>
                    </fo:table-row>
                    </fo:table-body>
                    </fo:table>
                    </fo:flow>
                    </fo:page-sequence>
                    </fo:root>

                    This doesn't seem to work, it seems both columns use 50% of the horizontal
                    space, instead of something like 5% and 95%. I thought by setting the width
                    of the first column to 0%, it would use as less space as needed. This works
                    perfect in HTML.

                    Do you guys have an idea? What I want is that the second column always start
                    at the same vertical position, so if you have another option, I'm glad to
                    hear it!

                    Thanks for your time,

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