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

Re[2]: [XSL-FO] How to create a border for table row

Expand Messages
  • Michael Sulyaev
    Hello Victor, Wednesday, December 15, 2004, 2:05:07 PM, you wrote: VV You are doing right. I ve tested table row borders support on my favorite VV four
    Message 1 of 15 , Dec 15, 2004
    • 0 Attachment
      Hello Victor,

      Wednesday, December 15, 2004, 2:05:07 PM, you wrote:

      VV> You are doing right. I've tested table row borders support on my favorite
      VV> four formatters and noticed that only Altsoft Xml2PDF and Antenna House XSL
      VV> Formatter supports this feature. Both Apache FOP and RenderX XEP ignore
      VV> them.

      Let me correct you: XEP supports borders on rows . The following FO
      code produces the expected result with RenderX XEP 4.0 or higher:

      <fo:table>
      <fo:table-body>
      <fo:table-row border="1pt solid black">
      <fo:table-cell padding="6pt"><fo:block>text</fo:block></fo:table-cell>
      <fo:table-cell padding="6pt"><fo:block>text</fo:block></fo:table-cell>
      </fo:table-row>
      </fo:table-body>
      <fo:table-body>
      <fo:table-row border="1pt solid red">
      <fo:table-cell padding="6pt"><fo:block>text</fo:block></fo:table-cell>
      <fo:table-cell padding="6pt"><fo:block>text</fo:block></fo:table-cell>
      </fo:table-row>
      </fo:table-body>
      <fo:table-body>
      <fo:table-row border="1pt solid green">
      <fo:table-cell padding="6pt"><fo:block>text</fo:block></fo:table-cell>
      <fo:table-cell padding="6pt"><fo:block>text</fo:block></fo:table-cell>
      </fo:table-row>
      </fo:table-body>
      </fo:table>

      By the way, borders are also allowed on row-groups: table-header,
      table-body(s) and table-footer.

      VV> Which formatter are you using?

      VV> Best Regards,
      VV> Victor Vishnyakov

      --
      Best regards,
      Michael mailto:msulyaev@...
    • W. Eliot Kimber
      ... Note that you are using shortcuts, which not all processors support. The safest way is to explicitly set each border property, e.g.
      Message 2 of 15 , Dec 15, 2004
      • 0 Attachment
        Ranjan K. Baisak wrote:

        > Michael,
        > I am using Apache FOP.
        > So is there any otherway to add a border to a table
        > row in Apche FOP.

        Note that you are using shortcuts, which not all processors support.

        The safest way is to explicitly set each border property, e.g.

        border-before-width="1pt"
        border-before-color="black"
        border-before-style="solid"

        Cheers,

        Eliot
        --
        W. Eliot Kimber
        Professional Services
        Innodata Isogen
        9390 Research Blvd, #410
        Austin, TX 78759
        (512) 372-8122

        eliot@...
        www.innodata-isogen.com
      • Victor Vishnyakov
        I have uploaded my test file and all four formatter results at: http://xslfo-zone.com/temp/table-rows-border.fo
        Message 3 of 15 , Dec 15, 2004
        • 0 Attachment
          I have uploaded my test file and all four formatter results at:
          http://xslfo-zone.com/temp/table-rows-border.fo
          http://xslfo-zone.com/temp/table-rows-border.fo.xep.pdf
          http://xslfo-zone.com/temp/table-rows-border.fo.fop.pdf
          http://xslfo-zone.com/temp/table-rows-border.fo.xslf.pdf
          http://xslfo-zone.com/temp/table-rows-border.fo.xml2pdf.pdf


          Note that XEP output didn't draw table row borders. Am I misunderstand
          specification or XEP doesn't support table-row borders?


          Best Regards,
          Victor Vishnyakov



          > -----Original Message-----
          > From: Michael Sulyaev [mailto:msulyaev@...]
          > Sent: Wednesday, December 15, 2004 3:51 PM
          > To: Victor Vishnyakov
          > Subject: Re[2]: [XSL-FO] How to create a border for table row
          >
          >
          > Hello Victor,
          >
          > Wednesday, December 15, 2004, 2:05:07 PM, you wrote:
          >
          > VV> You are doing right. I've tested table row borders support on my
          > VV> favorite four formatters and noticed that only Altsoft
          > Xml2PDF and
          > VV> Antenna House XSL Formatter supports this feature. Both
          > Apache FOP
          > VV> and RenderX XEP ignore them.
          >
          > Let me correct you: XEP supports borders on rows . The
          > following FO code produces the expected result with RenderX
          > XEP 4.0 or higher:
          >
          > <fo:table>
          > <fo:table-body>
          > <fo:table-row border="1pt solid black">
          > <fo:table-cell
          > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
          > <fo:table-cell
          > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
          > </fo:table-row>
          > </fo:table-body>
          > <fo:table-body>
          > <fo:table-row border="1pt solid red">
          > <fo:table-cell
          > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
          > <fo:table-cell
          > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
          > </fo:table-row>
          > </fo:table-body>
          > <fo:table-body>
          > <fo:table-row border="1pt solid green">
          > <fo:table-cell
          > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
          > <fo:table-cell
          > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
          > </fo:table-row>
          > </fo:table-body>
          > </fo:table>
          >
          > By the way, borders are also allowed on row-groups: table-header,
          > table-body(s) and table-footer.
          >
          > VV> Which formatter are you using?
          >
          > VV> Best Regards,
          > VV> Victor Vishnyakov
          >
          > --
          > Best regards,
          > Michael mailto:msulyaev@...
          >
          >
          >
          > ------------------------ Yahoo! Groups Sponsor
          > --------------------~-->
          > $4.98 domain names from Yahoo!. Register anything.
          > http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/9rHolB/TM
          > --------------------------------------------------------------
          > ------~->
          >
          >
          > Yahoo! Groups Links
          >
          >
          >
          >
          >
          >
          >
          >
        • CHRISTIE HOLLIS
          I had a similar issue using Treebeard. I have no idea what my group will use once it is all said & done. In order to get borders on a table row, I had to
          Message 4 of 15 , Dec 15, 2004
          • 0 Attachment
            I had a similar issue using Treebeard. I have no idea what my group will use
            once it is all said & done. In order to get borders on a table row, I had to
            modify each cell in the row by modifying the cells border-start-style,
            border-before-style, border-end-style, & border-after-style's appropriately.

            Christie

            >From: "Victor Vishnyakov" <tch_@...>
            >Reply-To: XSL-FO@yahoogroups.com
            >To: <XSL-FO@yahoogroups.com>
            >Subject: RE: Re[2]: [XSL-FO] How to create a border for table row
            >Date: Wed, 15 Dec 2004 18:01:35 +0200
            >
            >I have uploaded my test file and all four formatter results at:
            > http://xslfo-zone.com/temp/table-rows-border.fo
            > http://xslfo-zone.com/temp/table-rows-border.fo.xep.pdf
            > http://xslfo-zone.com/temp/table-rows-border.fo.fop.pdf
            > http://xslfo-zone.com/temp/table-rows-border.fo.xslf.pdf
            > http://xslfo-zone.com/temp/table-rows-border.fo.xml2pdf.pdf
            >
            >
            >Note that XEP output didn't draw table row borders. Am I misunderstand
            >specification or XEP doesn't support table-row borders?
            >
            >
            >Best Regards,
            >Victor Vishnyakov
            >
            >
            >
            > > -----Original Message-----
            > > From: Michael Sulyaev [mailto:msulyaev@...]
            > > Sent: Wednesday, December 15, 2004 3:51 PM
            > > To: Victor Vishnyakov
            > > Subject: Re[2]: [XSL-FO] How to create a border for table row
            > >
            > >
            > > Hello Victor,
            > >
            > > Wednesday, December 15, 2004, 2:05:07 PM, you wrote:
            > >
            > > VV> You are doing right. I've tested table row borders support on my
            > > VV> favorite four formatters and noticed that only Altsoft
            > > Xml2PDF and
            > > VV> Antenna House XSL Formatter supports this feature. Both
            > > Apache FOP
            > > VV> and RenderX XEP ignore them.
            > >
            > > Let me correct you: XEP supports borders on rows . The
            > > following FO code produces the expected result with RenderX
            > > XEP 4.0 or higher:
            > >
            > > <fo:table>
            > > <fo:table-body>
            > > <fo:table-row border="1pt solid black">
            > > <fo:table-cell
            > > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
            > > <fo:table-cell
            > > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
            > > </fo:table-row>
            > > </fo:table-body>
            > > <fo:table-body>
            > > <fo:table-row border="1pt solid red">
            > > <fo:table-cell
            > > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
            > > <fo:table-cell
            > > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
            > > </fo:table-row>
            > > </fo:table-body>
            > > <fo:table-body>
            > > <fo:table-row border="1pt solid green">
            > > <fo:table-cell
            > > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
            > > <fo:table-cell
            > > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
            > > </fo:table-row>
            > > </fo:table-body>
            > > </fo:table>
            > >
            > > By the way, borders are also allowed on row-groups: table-header,
            > > table-body(s) and table-footer.
            > >
            > > VV> Which formatter are you using?
            > >
            > > VV> Best Regards,
            > > VV> Victor Vishnyakov
            > >
            > > --
            > > Best regards,
            > > Michael mailto:msulyaev@...
            > >
            > >
            > >
            > > ------------------------ Yahoo! Groups Sponsor
            > > --------------------~-->
            > > $4.98 domain names from Yahoo!. Register anything.
            > > http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/9rHolB/TM
            > > --------------------------------------------------------------
            > > ------~->
            > >
            > >
            > > Yahoo! Groups Links
            > >
            > >
            > >
            > >
            > >
            > >
            > >
            > >
            >
          • Curtis Fisher
            One method is to build attribute sets for your objects to use. At least when you find something that works then you can alter it in a single location and it
            Message 5 of 15 , Dec 15, 2004
            • 0 Attachment
              One method is to build attribute sets for your objects to use. At
              least when you find something that works then you can alter it in a
              single location and it will propagate throughout your stylesheet...

              I am doing the following for mu tables with FOP and it is working:

              <xsl:for-each select="cell">
              <fo:table-cell xsl:use-attribute-sets="TableCell">
              <fo:block white-space-collapse="true" color="#000000">
              <xsl:value-of select="value"/>
              </fo:block>
              </fo:table-cell>

              My attribute sets are in a separate file which is imported and this
              particular set looks like this:
              <xsl:attribute-set name="TableCell">
              <xsl:attribute name="text-align">start</xsl:attribute>
              <xsl:attribute name="display-align">before</xsl:attribute>
              <xsl:attribute name="padding-bottom">3.0pt</xsl:attribute>
              <xsl:attribute name="padding-top">3.0pt</xsl:attribute>
              <xsl:attribute name="padding-left">3.0pt</xsl:attribute>
              <xsl:attribute name="padding-right">3.0pt</xsl:attribute>
              <xsl:attribute name="border">0.5pt</xsl:attribute>
              <xsl:attribute name="border-style">solid</xsl:attribute>
              <xsl:attribute name="border-color">black</xsl:attribute>
              </xsl:attribute-set>



              --- In XSL-FO@yahoogroups.com, "CHRISTIE HOLLIS"
              <christiehollis@h...> wrote:
              > I had a similar issue using Treebeard. I have no idea what my group
              will use
              > once it is all said & done. In order to get borders on a table row,
              I had to
              > modify each cell in the row by modifying the cells border-start-
              style,
              > border-before-style, border-end-style, & border-after-style's
              appropriately.
              >
              > Christie
              >
              > >From: "Victor Vishnyakov" <tch_@m...>
              > >Reply-To: XSL-FO@yahoogroups.com
              > >To: <XSL-FO@yahoogroups.com>
              > >Subject: RE: Re[2]: [XSL-FO] How to create a border for table row
              > >Date: Wed, 15 Dec 2004 18:01:35 +0200
              > >
              > >I have uploaded my test file and all four formatter results at:
              > > http://xslfo-zone.com/temp/table-rows-border.fo
              > > http://xslfo-zone.com/temp/table-rows-border.fo.xep.pdf
              > > http://xslfo-zone.com/temp/table-rows-border.fo.fop.pdf
              > > http://xslfo-zone.com/temp/table-rows-border.fo.xslf.pdf
              > > http://xslfo-zone.com/temp/table-rows-border.fo.xml2pdf.pdf
              > >
              > >
              > >Note that XEP output didn't draw table row borders. Am I
              misunderstand
              > >specification or XEP doesn't support table-row borders?
              > >
              > >
              > >Best Regards,
              > >Victor Vishnyakov
              > >
              > >
              > >
              > > > -----Original Message-----
              > > > From: Michael Sulyaev [mailto:msulyaev@r...]
              > > > Sent: Wednesday, December 15, 2004 3:51 PM
              > > > To: Victor Vishnyakov
              > > > Subject: Re[2]: [XSL-FO] How to create a border for table row
              > > >
              > > >
              > > > Hello Victor,
              > > >
              > > > Wednesday, December 15, 2004, 2:05:07 PM, you wrote:
              > > >
              > > > VV> You are doing right. I've tested table row borders support
              on my
              > > > VV> favorite four formatters and noticed that only Altsoft
              > > > Xml2PDF and
              > > > VV> Antenna House XSL Formatter supports this feature. Both
              > > > Apache FOP
              > > > VV> and RenderX XEP ignore them.
              > > >
              > > > Let me correct you: XEP supports borders on rows . The
              > > > following FO code produces the expected result with RenderX
              > > > XEP 4.0 or higher:
              > > >
              > > > <fo:table>
              > > > <fo:table-body>
              > > > <fo:table-row border="1pt solid black">
              > > > <fo:table-cell
              > > > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
              > > > <fo:table-cell
              > > > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
              > > > </fo:table-row>
              > > > </fo:table-body>
              > > > <fo:table-body>
              > > > <fo:table-row border="1pt solid red">
              > > > <fo:table-cell
              > > > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
              > > > <fo:table-cell
              > > > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
              > > > </fo:table-row>
              > > > </fo:table-body>
              > > > <fo:table-body>
              > > > <fo:table-row border="1pt solid green">
              > > > <fo:table-cell
              > > > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
              > > > <fo:table-cell
              > > > padding="6pt"><fo:block>text</fo:block></fo:table-cell>
              > > > </fo:table-row>
              > > > </fo:table-body>
              > > > </fo:table>
              > > >
              > > > By the way, borders are also allowed on row-groups: table-
              header,
              > > > table-body(s) and table-footer.
              > > >
              > > > VV> Which formatter are you using?
              > > >
              > > > VV> Best Regards,
              > > > VV> Victor Vishnyakov
              > > >
              > > > --
              > > > Best regards,
              > > > Michael mailto:msulyaev@r...
              > > >
              > > >
              > > >
              > > > ------------------------ Yahoo! Groups Sponsor
              > > > --------------------~-->
              > > > $4.98 domain names from Yahoo!. Register anything.
              > > > http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/9rHolB/TM
              > > > --------------------------------------------------------------
              > > > ------~->
              > > >
              > > >
              > > > Yahoo! Groups Links
              > > >
              > > >
              > > >
              > > >
              > > >
              > > >
              > > >
              > > >
              > >
            • Michael Sulyaev
              Hello Victor, Wednesday, December 15, 2004, 7:01:35 PM, you wrote: VV I have uploaded my test file and all four formatter results at: VV
              Message 6 of 15 , Dec 15, 2004
              • 0 Attachment
                Hello Victor,

                Wednesday, December 15, 2004, 7:01:35 PM, you wrote:
                VV> I have uploaded my test file and all four formatter results at:
                VV> http://xslfo-zone.com/temp/table-rows-border.fo
                VV> http://xslfo-zone.com/temp/table-rows-border.fo.xep.pdf
                VV> http://xslfo-zone.com/temp/table-rows-border.fo.fop.pdf
                VV> http://xslfo-zone.com/temp/table-rows-border.fo.xslf.pdf
                VV> http://xslfo-zone.com/temp/table-rows-border.fo.xml2pdf.pdf
                VV> Note that XEP output didn't draw table row borders. Am I misunderstand
                VV> specification or XEP doesn't support table-row borders?

                table-rows-border.fo.xep.pdf is produced by XEP 3.7.4,
                which is about a year old. Please don't consider this as an ad, but
                why do not you try the recent one?

                VV> Best Regards,
                VV> Victor Vishnyakov

                --
                Best regards,
                Michael mailto:msulyaev@...
              Your message has been successfully submitted and would be delivered to recipients shortly.