You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Linda Zammit <lz...@LOGGATE.com> on 2001/09/25 16:58:34 UTC

Line feed in FOP

I am trying to insert a line feed after an element value is displayed in a
fo:table-cell.

I have tried inserting <xsl:text>&#10;</xsl:text> but that translates into
just a space in the pdf output.  The line feed must come after the
"SHIP_UNIT_COUNT"

<fo:block line-height="16pt" font-size="10pt">
	<xsl:for-each select="SHIP_UNIT/ROW">
	<xsl:value-of select="SHIP_UNIT_COUNT"/><xsl:text>&#10;</xsl:text>
	</xsl:for-each>
</fo:block>

Is there some way to do this?  

Thanks so much, in advance!

Linda

Re: Line feed in FOP

Posted by "David S. Dixon" <dd...@leastsquares.com>.
Linda,

If you actually need a linefeed character (&#10;) try this:

        <xsl:value-of select="SHIP_UNIT_COUNT"/>
               <fo:inline white-space-collapse="false">
                   &#10;
               </fo:inline>

-dd


Linda Zammit wrote:

>
>
> I am trying to insert a line feed after an element value is displayed
> in a fo:table-cell.
>
> I have tried inserting <xsl:text>&#10;</xsl:text> but that translates
> into just a space in the pdf output.  The line feed must come after
> the "SHIP_UNIT_COUNT"
>
> <fo:block line-height="16pt" font-size="10pt">
>         <xsl:for-each select="SHIP_UNIT/ROW">
>         <xsl:value-of
> select="SHIP_UNIT_COUNT"/><xsl:text>&#10;</xsl:text>
>         </xsl:for-each>
> </fo:block>
>
> Is there some way to do this?
>
> Thanks so much, in advance!
>
> Linda

Re: Line feed in FOP

Posted by Petr Zeman <Pe...@jlabs.cz>.
Line feed in FOPYou can try this:

<fo:block line-height="16pt" font-size="10pt"> 
        <xsl:for-each select="SHIP_UNIT/ROW"> 
        <xsl:value-of select="SHIP_UNIT_COUNT"/>
<xsl:text>
</xsl:text> 
        </xsl:for-each> 
</fo:block> 

    Petr Zeman
  ----- Original Message ----- 
  From: Linda Zammit 
  To: 'fop-dev@xml.apache.org' 
  Sent: Tuesday, September 25, 2001 4:58 PM
  Subject: Line feed in FOP


  I am trying to insert a line feed after an element value is displayed in a fo:table-cell. 

  I have tried inserting <xsl:text>&#10;</xsl:text> but that translates into just a space in the pdf output.  The line feed must come after the "SHIP_UNIT_COUNT"

  <fo:block line-height="16pt" font-size="10pt"> 
          <xsl:for-each select="SHIP_UNIT/ROW"> 
          <xsl:value-of select="SHIP_UNIT_COUNT"/><xsl:text>&#10;</xsl:text> 
          </xsl:for-each> 
  </fo:block> 

  Is there some way to do this?  

  Thanks so much, in advance! 

  Linda