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 se...@paneurolife.lu on 2003/06/26 16:20:30 UTC

Problem with line breaks

Hello,

I have this xml file shape :

      <Columns>
            <Column>....</Column>
            <Column>....</Column>
            <Column>PErf. 2003 2002 2000</Column>
      </Columns>

I would like to have a line break between  PErf., 2003, 2002, 2000.
I fact, i would like an equivalent of : "PErf. <br> 2003 <br> 2002 <br>
2000." in html

I know that, the xsl fo equivalent of <br> is <fo:block/>

I have tried this code:

<xsl:template match='.../Columns/Column'>
      <fo:table-cell background-color="#7f3f00">
            <fo:block text-align="left" font-size="8pt" color="#FFFFFF">
                  <xsl:value-of disable-output-escaping="yes"
select="translate(. , ' ' , '&lt;fo:block&gt;')"/>
            </fo:block>
      </fo:table-cell>
</xsl:template>

or

<xsl:template match='.../Columns/Column'>
      <fo:table-cell background-color="#7f3f00">
            <fo:block text-align="left" font-size="8pt" color="#FFFFFF">
                  <xsl:value-of disable-output-escaping="yes"
select="translate(. , ' ' , concat('&lt;','fo:block','&gt;'))"/>
            </fo:block>
      </fo:table-cell>
</xsl:template>


but the xsl fo code return is:

PErf. <2003<2002<2000

i would like : PErf.<fo:block/>2003<fo:block/>2002<fo:block/>2000

Can you help me?
Have you an other method to add line breaks?

Thanks

Sébastien











The contents of this E-mail are confidential and may contain privileged information to the sole intended recipient at the E-mail address to which it has been addressed. It may not be disclosed to our used by anyone other than the addressee, nor may it be copied or forwarded in any way without the consent of the sender.
The sender hereby make no representation as to the accuracy, completeness for a particular purpose of the information provided in this E-mail. No binding commitment from the sender may be inferred by means of E-mail communications.
Please note that the sender accepts any responsibility for viruses and it is your responsibility to scan the E-mail and attachments (if any). 
If received in error, please reply by mail to the sender or contact the sender by phone (+352) 45 67 301, and then delete it from your system.


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


Re: Problem with line breaks

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Clay Leeds wrote:
> Actually, I believe the equivalent of <br> is 
> <fo:block>&#160;</fo:block> because the <fo:block> element requires 
> content

It doesn't, although it's not defined well how <fo:block/> should
be rendered. The common assumption seems to be that it creates
an area with a content rectangle of zero height and width.

J.Pietschmann



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


Re: Problem with line breaks

Posted by "Rodolfo M. Raya" <ro...@heartsome.net>.
On Thu, 2003-06-26 at 13:43, Clay Leeds wrote:
> Whoops! That should've been...
> 
> (I'm speaking from experience, and *NOT* the perspective of intimate 
> knowledge of "the XSL-FO spec").
> 
> hehehe... my bad!

Not your bad, your inner wishes showing up :)

Rodolfo
-- 
Rodolfo M. Raya <ro...@heartsome.net>
Heartsome Holdings Pte. Ltd.


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


RE: Problem with line breaks

Posted by Andreas Delmelle <a_...@pandora.be>.
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> > 
> > <fo:block>PErf.&#160;2003&#160;2002&#160;2000</fo:block>
> > ( optional : defining entity for "&#160;" to make it more
> > readable ) 
> 
> This example probably won't help much, since &#160; equates to a 
> non-breaking space (&nbsp;) which would force all of the elements
> on one  line. I use it in my example wrapped with <fo:block> &
> </fo:block> tags  causing the linefeed.
> 

then maybe the good-old "&#013;" would be better suited?

cheerz,

ald

> -- 
> Clay Leeds - cleeds@medata.com
> Web Developer - Medata, Inc. - http://www.medata.com
> PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
> 
> 
> --------------------------------------------------------------------
> - To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPvsyU9Bw/OvTa+XUEQJvqACg4JaT3hvio5UwV0KezbwJ1y2jsHsAn3fI
NIws9lzr/FhDII6nKpD+KHWB
=9PQx
-----END PGP SIGNATURE-----


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


Re: Problem with line breaks

Posted by Clay Leeds <cl...@medata.com>.
On 6/26/2003 10:35 AM, Andreas Delmelle wrote:
> i'm speaking from neither, but the desired result seems 
> a little awkward (?)
> 
> better-formed :
> 
> <fo:block>PErf.</fo:block><fo:block>2003</fo:block> etc.

touche'! This is definitely a better solution, although this will 
involve wrapping the words, instead of creating breaks at the ','.

> or 
> 
> <fo:block>PErf.&#160;2003&#160;2002&#160;2000</fo:block>
> ( optional : defining entity for "&#160;" to make it more readable )

This example probably won't help much, since &#160; equates to a 
non-breaking space (&nbsp;) which would force all of the elements on one 
line. I use it in my example wrapped with <fo:block> & </fo:block> tags 
causing the linefeed.

-- 
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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


RE: Problem with line breaks

Posted by Andreas Delmelle <a_...@pandora.be>.
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

i'm speaking from neither, but the desired result seems 
a little awkward (?)

better-formed :

<fo:block>PErf.</fo:block><fo:block>2003</fo:block> etc.

or 

<fo:block>PErf.&#160;2003&#160;2002&#160;2000</fo:block>
( optional : defining entity for "&#160;" to make it more readable )


cheerz,

ald



- -----Original Message-----
From: Clay Leeds [mailto:cleeds@medata.com]
Sent: donderdag 26 juni 2003 18:44
To: fop-user@xml.apache.org
Subject: Re: Problem with line breaks


Whoops! That should've been...

(I'm speaking from experience, and *NOT* the perspective of intimate 
knowledge of "the XSL-FO spec").

hehehe... my bad!

On 6/26/2003 9:27 AM, Clay Leeds wrote:
> Sebastien,
> 
> On 6/26/2003 7:20 AM, sebastien.mielot@paneurolife.lu wrote:
>> I know that, the xsl fo equivalent of <br> is <fo:block/>
> 
> Actually, I believe the equivalent of <br> is 
> <fo:block>&#160;</fo:block> because the <fo:block> element requires
>  content (I'm speaking from experience, and the perspective of
> intimate  knowledge of "the XSL-FO spec").
> 
> HTH!
- -- 
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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



-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPvsu2tBw/OvTa+XUEQJmZQCgyKJt8+feKeOcv1mWKfWIfARBn9wAoNec
XsxJb7QPEM0Lpx2Ybyj+oZsK
=2vFr
-----END PGP SIGNATURE-----


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


Re: Problem with line breaks

Posted by Clay Leeds <cl...@medata.com>.
Whoops! That should've been...

(I'm speaking from experience, and *NOT* the perspective of intimate 
knowledge of "the XSL-FO spec").

hehehe... my bad!

On 6/26/2003 9:27 AM, Clay Leeds wrote:
> Sebastien,
> 
> On 6/26/2003 7:20 AM, sebastien.mielot@paneurolife.lu wrote:
>> I know that, the xsl fo equivalent of <br> is <fo:block/>
> 
> Actually, I believe the equivalent of <br> is 
> <fo:block>&#160;</fo:block> because the <fo:block> element requires 
> content (I'm speaking from experience, and the perspective of intimate 
> knowledge of "the XSL-FO spec").
> 
> HTH!
-- 
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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


Re: Problem with line breaks

Posted by "Rodolfo M. Raya" <ro...@heartsome.net>.
On Thu, 2003-06-26 at 13:27, Clay Leeds wrote:

>  (I'm speaking from experience, and the perspective of intimate 
> knowledge of "the XSL-FO spec").
> 
> HTH!

How wonderful life would be for all XSL-FO users if we had "intimate"
knowledge of the specs! :)

Yeah, I know. This can happen in dreams :)

Rodolfo
-- 
Rodolfo M. Raya <ro...@heartsome.net>
Heartsome Holdings Pte. Ltd.


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


Re: Problem with line breaks

Posted by Clay Leeds <cl...@medata.com>.
Sebastien,

On 6/26/2003 7:20 AM, sebastien.mielot@paneurolife.lu wrote:
> I know that, the xsl fo equivalent of <br> is <fo:block/>

Actually, I believe the equivalent of <br> is 
<fo:block>&#160;</fo:block> because the <fo:block> element requires 
content (I'm speaking from experience, and the perspective of intimate 
knowledge of "the XSL-FO spec").

HTH!

-- 
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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