Thank you for confirming this. I thought that there was a problem, but no
one was complaining. I am stuck with JDK 1.1, and the version of FOP that I
am running is a mix of 0.20.1 and 0.19. I fixed the problem in my version,
but was not certain that it existed in the CVS. I will try to fix this later
today. My commit access may have expired, since it has been a few months
since I have committed anything (sorry). If I can, I will try to commit the
change today. If I am expired I will try to get re-enabled and commit
sometime next week.

Art

-----Original Message-----
From: Igor V. Gunko [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 5:36 AM
To: [EMAIL PROTECTED]
Subject: bug inside


    Hi, there. I write to let you know one more issue concerning FOP.  :)

    Here it is: Moving from v0.19 to v0.20.1 I found the PCL renderer having
acquired a new bug. It has problems drawing vertical lines. The version
0.20.2 left the problem unsolved, while 0.19 works fine.


Perpetuam felicitatem,
IVG


Below is an example XML/XSL document that causes the problem.
The example consists of two files: demorep.xsl & demorep.xml


begin file demorep.xsl
-------------------------------------------------------------

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  xmlns:fo="http://www.w3.org/1999/XSL/Format";>
 <xsl:template match="/">
  <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
   <fo:layout-master-set>
    <fo:simple-page-master master-name="A4" page-width="297mm"
page-height="210mm" margin-top="10mm" margin-bottom="20mm"
margin-left="20mm" margin-right="20mm">
     <fo:region-body margin-top="10mm"/>
    </fo:simple-page-master>
   </fo:layout-master-set>

   <fo:page-sequence master-name="A4">
    <fo:flow flow-name="xsl-region-body">


             <fo:table>
                <fo:table-column column-width="185mm"/>
                <fo:table-column column-width="75mm"/>
              <fo:table-body>
                  <fo:table-row>
                    <fo:table-cell  border-after-width="1mm"
border-after-color="#609090" border-after-style="solid">
        </fo:table-cell>
                    <fo:table-cell border-before-width="1mm"
border-before-color="#609090" border-before-style="solid"
border-start-width="1mm" border-start-color="#609090"
border-start-style="solid">
        <fo:block font-family="Helvetica" font-size="30pt" text-align="end">
         Balance Sheet
        </fo:block>
        </fo:table-cell>
                  </fo:table-row>
                </fo:table-body>
             </fo:table>

     <fo:block font-family="Helvetica" font-size="20pt" text-align="center"
space-after="5pt"></fo:block>

             <fo:table>
                <fo:table-column column-width="260mm"/>
              <fo:table-body>
                  <fo:table-row>
                    <fo:table-cell  border-before-width="0.5mm"
border-before-color="#906060" border-before-style="solid">
        </fo:table-cell>
                  </fo:table-row>
                </fo:table-body>
             </fo:table>


     <fo:block font-family="Helvetica" font-size="20pt" text-align="center"
space-after="10pt"></fo:block>

             <fo:table>
        <fo:table-column column-width="30mm"/>
                 <fo:table-column column-width="100mm"/>
                 <fo:table-column column-width="10mm"/>
                 <fo:table-column column-width="80mm"/>
                 <fo:table-column column-width="40mm"/>
              <fo:table-body>
                  <fo:table-row>
                    <fo:table-cell>
        <fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" text-align="center" space-after="5pt" space-before="5pt">
                Description</fo:block></fo:table-cell>
                    <fo:table-cell border-width="0.1mm"
border-style="solid">
        <fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" text-align="center" space-after="5pt" space-before="5pt">
                     <xsl:apply-templates
select="//HEAD"/></fo:block></fo:table-cell>
                    <fo:table-cell><fo:block></fo:block></fo:table-cell>
                    <fo:table-cell>
        <fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" text-align="end" space-after="5pt" space-before="5pt"
margin-right="10pt">
                     Starting Balance</fo:block></fo:table-cell>
                    <fo:table-cell border-width="0.1mm"
border-style="solid">
        <fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" text-align="center" space-after="5pt" space-before="5pt">
                     <xsl:apply-templates
select="//START"/></fo:block></fo:table-cell>
                  </fo:table-row>
                </fo:table-body>
             </fo:table>

     <fo:block font-family="Helvetica" font-size="12pt" text-align="start"
space-after="40pt"></fo:block>

             <fo:table border-width="0.1mm" border-style="solid"
border-collapse="collapse">
        <fo:table-column column-width="30mm"/>
                 <fo:table-column column-width="110mm"/>
                 <fo:table-column column-width="40mm"/>
                 <fo:table-column column-width="40mm"/>
                 <fo:table-column column-width="40mm"/>
              <fo:table-body>
                  <fo:table-row>
                    <fo:table-cell border-width="0.1mm"
border-style="solid">
        <fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" text-align="center" space-after="5pt" space-before="5pt">
                Date</fo:block></fo:table-cell>
                    <fo:table-cell border-width="0.1mm"
border-style="solid">
        <fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" text-align="center" space-after="5pt" space-before="5pt">
                     Item Description</fo:block></fo:table-cell>
                    <fo:table-cell border-width="0.1mm"
border-style="solid">
        <fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" text-align="center" space-after="5pt" space-before="5pt">
                     Received</fo:block></fo:table-cell>
                    <fo:table-cell border-width="0.1mm"
border-style="solid">
        <fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" text-align="center" space-after="5pt" space-before="5pt">
                     Balance</fo:block></fo:table-cell>
                    <fo:table-cell border-width="0.1mm"
border-style="solid">
        <fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" text-align="center" space-after="5pt" space-before="5pt">
                     Payment</fo:block></fo:table-cell>
                  </fo:table-row>
                    <xsl:apply-templates select="//TABLE">
                      <xsl:sort data-type="number" select="NAME1"/>
                    </xsl:apply-templates>
                </fo:table-body>
             </fo:table>

     <fo:block font-family="Helvetica" font-size="20pt" text-align="center"
space-after="20pt"></fo:block>

             <fo:table>
                <fo:table-column column-width="30mm"/>
                <fo:table-column column-width="110mm"/>
                <fo:table-column column-width="40mm"/>
              <fo:table-body>
               <xsl:apply-templates select="//TOTAL"/>
                </fo:table-body>
             </fo:table>

    </fo:flow>
   </fo:page-sequence>
  </fo:root>
 </xsl:template>


  <xsl:template match="TABLE">
    <fo:table-row>
  <fo:table-cell border-width="0.1mm" border-style="solid">
   <fo:block font-family="Helvetica" font-size="11pt" text-align="start"
space-after="5pt" space-before="5pt" margin-left="10pt">
   <xsl:value-of select="DATE"/></fo:block></fo:table-cell>
  <fo:table-cell border-width="0.1mm" border-style="solid">
   <fo:block font-family="Helvetica" font-size="11pt" text-align="start"
space-after="5pt" space-before="5pt" margin-left="10pt">
   <xsl:value-of select="ITEM"/></fo:block></fo:table-cell>
  <fo:table-cell border-width="0.1mm" border-style="solid"
background-color="#e0e0e0">
   <fo:block font-family="Helvetica" font-size="11pt" text-align="end"
space-after="5pt" space-before="5pt" margin-right="10pt">
   <xsl:value-of select="RECEIVED"/></fo:block></fo:table-cell>
  <fo:table-cell border-width="0.1mm" border-style="solid"
background-color="#ffffcc">
   <fo:block font-family="Helvetica" font-size="11pt" text-align="end"
space-after="5pt" space-before="5pt" margin-right="10pt">
   <xsl:value-of select="BALANCE"/></fo:block></fo:table-cell>
  <fo:table-cell border-width="0.1mm" border-style="solid"
background-color="#cceeff">
   <fo:block font-family="Helvetica" font-size="11pt" text-align="end"
space-after="5pt" space-before="5pt" margin-right="10pt">
   <xsl:value-of select="PAYMENT"/></fo:block></fo:table-cell>
    </fo:table-row>
  </xsl:template>

  <xsl:template match="TOTAL">
    <fo:table-row>
  <fo:table-cell><fo:block></fo:block></fo:table-cell>
  <fo:table-cell>
   <fo:block font-family="Helvetica" font-size="11pt"  font-weight="bold"
text-align="end" space-after="5pt" space-before="5pt" margin-right="10pt">
   Receivable</fo:block></fo:table-cell>
  <fo:table-cell border-width="0.1mm" border-style="solid"
background-color="#cceeff">
   <fo:block font-family="Helvetica" font-size="11pt" text-align="end"
space-after="5pt" space-before="5pt" margin-right="10pt">
   <xsl:value-of select="RECEIVABLE"/></fo:block></fo:table-cell>
    </fo:table-row>
    <fo:table-row>
  <fo:table-cell><fo:block></fo:block></fo:table-cell>
  <fo:table-cell>
   <fo:block font-family="Helvetica" font-size="11pt"  font-weight="bold"
text-align="end" space-after="5pt" space-before="5pt" margin-right="10pt">
   Payables</fo:block></fo:table-cell>
  <fo:table-cell border-width="0.1mm" border-style="solid"
background-color="#cceeff">
   <fo:block font-family="Helvetica" font-size="11pt" text-align="end"
space-after="5pt" space-before="5pt" margin-right="10pt">
   <xsl:value-of select="PAYABLES"/></fo:block></fo:table-cell>
    </fo:table-row>
    <fo:table-row>
  <fo:table-cell><fo:block></fo:block></fo:table-cell>
  <fo:table-cell>
   <fo:block font-family="Helvetica" font-size="11pt"  font-weight="bold"
text-align="end" space-after="5pt" space-before="5pt" margin-right="10pt">
   Current Balance</fo:block></fo:table-cell>
  <fo:table-cell border-width="0.1mm" border-style="solid"
background-color="#cceeff">
   <fo:block font-family="Helvetica" font-size="11pt" text-align="end"
space-after="5pt" space-before="5pt" margin-right="10pt">
   <xsl:value-of select="CURRENT"/></fo:block></fo:table-cell>
    </fo:table-row>
  </xsl:template>

  <xsl:template match="START">
    <fo:block><xsl:value-of select="VAL"/></fo:block>
  </xsl:template>

  <xsl:template match="HEAD">
    <fo:block><xsl:value-of select="NAME"/></fo:block>
  </xsl:template>

</xsl:stylesheet>

-------------------------------------------------------------
end file demorep.xsl


****************************************************************************
***********


begin file demorep.xml
-------------------------------------------------------------

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="demorep.xsl"?>
<TEST_PAGE>
 <HEAD>
  <NAME>PRS subsytem demo sheet</NAME>
 </HEAD>
 <START>
  <VAL>$ 1 000.00</VAL>
 </START>
 <TOTAL>
  <RECEIVABLE>$ 4 500.00</RECEIVABLE>
  <PAYABLES>$ 3 000.00</PAYABLES>
  <CURRENT>$ 2 500.00</CURRENT>
 </TOTAL>
 <TABLE>
  <DATE>10.07.2001</DATE>
  <ITEM>Description of item #1</ITEM>
  <RECEIVED>$ 1 500.00</RECEIVED>
  <BALANCE>$ 1 000.00</BALANCE>
  <PAYMENT>$ 1 500.00</PAYMENT>
 </TABLE>
 <TABLE>
  <DATE>13.08.2001</DATE>
  <ITEM>Description of item #2</ITEM>
  <RECEIVED>$ 3 000.00</RECEIVED>
  <BALANCE>$ 2 000.00</BALANCE>
  <PAYMENT>$ 2 500.00</PAYMENT>
 </TABLE>
 <TABLE>
  <DATE>&#160;</DATE>
  <ITEM/>
  <RECEIVED/>
  <BALANCE/>
  <PAYMENT/>
 </TABLE>
 <TABLE>
  <DATE>&#160;</DATE>
  <ITEM/>
  <RECEIVED/>
  <BALANCE/>
  <PAYMENT/>
 </TABLE>
 <TABLE>
  <DATE>&#160;</DATE>
  <ITEM/>
  <RECEIVED/>
  <BALANCE/>
  <PAYMENT/>
 </TABLE>
</TEST_PAGE>

-------------------------------------------------------------
end file demorep.xsl




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to