You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Luke Shannon <ls...@futurebrand.com> on 2005/01/13 21:40:26 UTC

Table Cell Question

Sorry if it seems I am flooding the list with questions. I am new to this
technology and trying to meet a deadline on a project . Any help is
appreciated:

I have this table:

<xsl:template name="s6_pdf" >
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:table table-layout="fixed" width="100%">
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>
<xsl:call-template name="image_display_and_upload">
<xsl:with-param name="imagenode" select="." />
<xsl:with-param name="image_number" select="number('3')" />
</xsl:call-template>
</fo:block>
<fo:block>
<xsl:call-template name="image_display_and_upload">
<xsl:with-param name="imagenode" select="." />
<xsl:with-param name="image_number" select="number('4')" />
</xsl:call-template>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-family="Arial" font-size="12pt" font-weight="normal"
break-after="auto" space-after="10pt" text-align="left">
<xsl:call-template name="text_display_and_edit">
<xsl:with-param name="text_number" select="number('1')" />
</xsl:call-template>
</fo:block>
<fo:block font-family="Arial" font-size="12pt" font-weight="normal"
break-after="auto" space-after="10pt" text-align="left">
<xsl:call-template name="text_display_and_edit">
<xsl:with-param name="text_number" select="number('2')" />
</xsl:call-template>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</xsl:template>

The second block in the second row is not getting written out. Even if I
make it the only block of that cell, nothing gets written out.

However, if I try and write the first block twice I am succesfully:

<fo:table-cell>
<fo:block font-family="Arial" font-size="12pt" font-weight="normal"
break-after="auto" space-after="10pt" text-align="left">
<xsl:call-template name="text_display_and_edit">
<xsl:with-param name="text_number" select="number('1')" />
</xsl:call-template>
</fo:block>
<fo:block font-family="Arial" font-size="12pt" font-weight="normal"
break-after="auto" space-after="10pt" text-align="left">
<xsl:call-template name="text_display_and_edit">
<xsl:with-param name="text_number" select="number('1')" />
</xsl:call-template>
</fo:block>
</fo:table-cell>

This works. Both block are written out.

It seems the issue is related to the size of the content. Text_number 2
contains a long column of text.

What can I do to resolve this?

Thanks,

Luke



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Table Cell Question

Posted by Luke Shannon <ls...@futurebrand.com>.
I may have found the problem.

The inputs causing problem are coming in from IE.

When the user inputs data from IE it is done in a text tool that surrounds
paragraphs in <p> tags.

It seems the content being sent in the block is in HTML tags.

If I take the pages out this are fine. Anyone know an easy way to strip out
HTML tags?

Luke
----- Original Message ----- 
From: "Luke Shannon" <ls...@futurebrand.com>
To: <fo...@xml.apache.org>
Sent: Thursday, January 13, 2005 4:10 PM
Subject: Re: Table Cell Question


> I have verified that the template is producing an output.
>
> As a test I put putting a much short value in the place of the longer one
I
> was trying to write. This works.
>
> It just won't produce an output of the longer value.
>
> Any ideas?
>
> Thanks,
>
> Luke
> ----- Original Message ----- 
> From: "J.Pietschmann" <j3...@yahoo.de>
> To: <fo...@xml.apache.org>
> Sent: Thursday, January 13, 2005 3:56 PM
> Subject: Re: Table Cell Question
>
>
> > Luke Shannon wrote:
> > > The second block in the second row is not getting written out. Even if
I
> > > make it the only block of that cell, nothing gets written out.
> >
> > Guess: The call-template doesn't produce anything.
> > Generate a FO file
> >   http://xml.apache.org/fop/running.html#check-input
> > and check whether the expected content is there.
> >
> > J.Pietschmann
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> > For additional commands, e-mail: fop-user-help@xml.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Table Cell Question

Posted by Luke Shannon <ls...@futurebrand.com>.
I have verified that the template is producing an output.

As a test I put putting a much short value in the place of the longer one I
was trying to write. This works.

It just won't produce an output of the longer value.

Any ideas?

Thanks,

Luke
----- Original Message ----- 
From: "J.Pietschmann" <j3...@yahoo.de>
To: <fo...@xml.apache.org>
Sent: Thursday, January 13, 2005 3:56 PM
Subject: Re: Table Cell Question


> Luke Shannon wrote:
> > The second block in the second row is not getting written out. Even if I
> > make it the only block of that cell, nothing gets written out.
>
> Guess: The call-template doesn't produce anything.
> Generate a FO file
>   http://xml.apache.org/fop/running.html#check-input
> and check whether the expected content is there.
>
> J.Pietschmann
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Table Cell Question

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Luke Shannon wrote:
> The second block in the second row is not getting written out. Even if I
> make it the only block of that cell, nothing gets written out.

Guess: The call-template doesn't produce anything.
Generate a FO file
  http://xml.apache.org/fop/running.html#check-input
and check whether the expected content is there.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org