Re: Problem with whitespace-treatment

2011-05-14 Thread Giuseppe Briotti
IMHO the problem here is that you are trying to convert basically text file
with xsl:fo :)

In this case the correct alignment requires proper font (i.e. non
proportional font like Courier) and a proper number of space that must
insert by the user...

Probably the best choice is to try to transformate such text in a table (as
others suggested). The cell separator can be a tab character (if possible)
or a group of consecutive spache characters. The row separator can be a line
feed or carriage return.

With a propers XSLT you can obtain a table, that is better for alignements
:-)

-- 

Giuseppe Briotti
g.brio...@gmail.com

Alme Sol, curru nitido diem qui
promis et celas aliusque et idem
nasceris, possis nihil urbe Roma
visere maius.
(Orazio)


Re: Problem with whitespace-treatment

2011-05-14 Thread Giuseppe Briotti
PS.

Your text seems like several key-value pairs... another choice is to split
accordingly and create a table, but this can do in a simple way only if key
and value don't contains space themselves.

2011/5/14 Giuseppe Briotti g.brio...@gmail.com

 IMHO the problem here is that you are trying to convert basically text file
 with xsl:fo :)

 In this case the correct alignment requires proper font (i.e. non
 proportional font like Courier) and a proper number of space that must
 insert by the user...

 Probably the best choice is to try to transformate such text in a table (as
 others suggested). The cell separator can be a tab character (if possible)
 or a group of consecutive spache characters. The row separator can be a line
 feed or carriage return.

 With a propers XSLT you can obtain a table, that is better for alignements
 :-)


 --

 Giuseppe Briotti
 g.brio...@gmail.com

 Alme Sol, curru nitido diem qui
 promis et celas aliusque et idem
 nasceris, possis nihil urbe Roma
 visere maius.
 (Orazio)




-- 

Giuseppe Briotti
g.brio...@gmail.com

Alme Sol, curru nitido diem qui
promis et celas aliusque et idem
nasceris, possis nihil urbe Roma
visere maius.
(Orazio)


Re: Problem with whitespace-treatment

2011-05-11 Thread Michael Rubin

I am guessing they are space characters before the X's. I was just wondering if 
you have tried tab characters at all? Does that have a similar effect? 
Certainly in word processing tabs align much better than spaces especially 
where different fonts are involved.

Thanks.

-Mike

On 11/05/11 14:37, Michael Seeberger wrote:
Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 and can't 
get my text formatted the way i want to:

my formatted text is (leading whitespaces before Bank, BLZ, Konto and Empf�nger)

��� Bank:� X
��� BLZ:��� X
��� Konto: X
��� Empf�nger:��� X

Gutschriften �berweisen wir auf die uns seinerzeit mitgeteilte Bankverbindung. 
Sofern sich diese
ge�ndert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

the value in my xml-tag is:

abrechnungsfreitext isMonospace=false text=��� Bank:�� X#xA;��� 
BLZ:��� X#xA;��� Konto:� X#xA;��� Empf�nger:� 
X#xA;#xA;Gutschriften �berweisen wir auf die uns seinerzeit mitgeteilte Bankverbindung. Sofern sich diese 
ge�ndert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um Bekanntgabe. /

i tried several combinations of white-space-collapse, white-space-treatment and 
linefeed-treatment. For example when using

1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=preserve or ignore-if-before-linefeed
��� = The text Gutschriften �berweisen  gets wrapped at diese and a 
leading whitespace is added to the following line so it looks like this:
���
��� Gutschriften �berweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 ge�ndert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=ignore-if-after-linefeed or ignore-if-surrounding-linefeed
��� = The leading whitespaces before Bank, BLZ etc. are beeing ignored so 
the text is printed this way;

���
��� Bank:� X
��� BLZ:��� X
��� Konto: X
��� Empf�nger:��� X

��� Gutschriften �berweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
��� ge�ndert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

Is there a way to prevent FOP from deleting the inserted whitespaces before 
Bank, and inserting a whitespace when performing an automatic linebreak??

I hope you get my point and can help me.

Thx
Michael Seeberger





Michael Rubin


Developer


[http://thunderhead.com/email_signature/images/Thunderhead-logo.png]
[http://thunderhead.com/email_signature/images/make-every-communication-count.png]
  [http://thunderhead.com/email_signature/images/triangles.png]

T

F

M

E

W


+44 20 8238 7400

+44 20 8238 7401



mru...@thunderhead.commailto:mru...@thunderhead.com

www.thunderhead.comhttp://www.thunderhead.com



Thunderhead featured in The Sunday Times Profit Track 100 league table of companies 
with fastest-growing profits. Click 
herehttp://www.fasttrack.co.uk/fasttrack/press/pt11-lon.pdf to read more.


[http://thunderhead.com/email_signature/images/linkedin.png]http://www.linkedin.com/companies/25033/Thunderhead
 [http://thunderhead.com/email_signature/images/twitter.png] http://twitter.com/Thunderheadon 
[http://thunderhead.com/email_signature/images/rss.png] http://www.thunderhead.com/rss/rss.php 
[http://thunderhead.com/email_signature/images/youtube.png] http://www.youtube.com/user/ThunderheadOn 
[http://thunderhead.com/email_signature/images/theblog.png] http://thunderheadinnovate.wordpress.com/  
[http://thunderhead.com/email_signature/images/werehiring.png] http://thunderhead.com/about/careers.php

The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it.






Re: Problem with whitespace-treatment

2011-05-11 Thread Michael Seeberger
 ahh yes that should be spaces before the X's (dont know what 
happend to the spaces in my mail ...).

i tried inserting tab characters (#x9; in XML) but it didn't really work.

Michael Seeberger

Am 11.05.2011 15:55, schrieb Michael Rubin:


I am guessing they are space characters before the X's. I was just 
wondering if you have tried tab characters at all? Does that have a 
similar effect? Certainly in word processing tabs align much better 
than spaces especially where different fonts are involved.


Thanks.

-Mike

On 11/05/11 14:37, Michael Seeberger wrote:


Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 
and can't get my text formatted the way i want to:


my formatted text is (leading whitespaces before Bank, BLZ, Konto and 
Empf�nger)


��� Bank:� X
��� BLZ:��� X
��� Konto: X
��� Empf�nger:��� X

Gutschriften �berweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
ge�ndert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.


the value in my xml-tag is:

abrechnungsfreitext isMonospace=false text=��� 
Bank:�� X#xA;��� BLZ:��� 
X#xA;��� Konto:� X#xA;��� 
Empf�nger:� X#xA;#xA;Gutschriften �berweisen wir 
auf die uns seinerzeit mitgeteilte Bankverbindung. Sofern sich diese 
ge�ndert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe. /


i tried several combinations of white-space-collapse, 
white-space-treatment and linefeed-treatment. For example when using


1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*preserve *or *ignore-if-before-linefeed*
��� = The text Gutschriften �berweisen  gets wrapped at 
diese and a leading whitespace is added to the following line so it 
looks like this:

���
��� Gutschriften �berweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 ge�ndert haben sollte, bitten wir zur Vermeidung von 
Fehlbuchungen um Bekanntgabe.


2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*ignore-if-after-linefeed* or 
*ignore-if-surrounding-linefeed*
��� = The leading whitespaces before Bank, BLZ etc. are beeing 
ignored so the text is printed this way;


���
��� Bank:� X
��� BLZ:��� X
��� Konto: X
��� Empf�nger:��� X

��� Gutschriften �berweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
��� ge�ndert haben sollte, bitten wir zur Vermeidung von 
Fehlbuchungen um Bekanntgabe.


Is there a way to prevent FOP from deleting the inserted whitespaces 
before Bank, and inserting a whitespace when performing an 
automatic linebreak??


I hope you get my point and can help me.

Thx
Michael Seeberger









*Michael Rubin*

Developer

Thunderhead LogoTagline Triangles

*T*

*F*

*M*

*E*

*W*



+44 20 8238 7400

+44 20 8238 7401

mru...@thunderhead.com mailto:mru...@thunderhead.com

www.thunderhead.com http://www.thunderhead.com  

Thunderhead featured in The Sunday Times Profit Track 100 league table 
of companies with fastest-growing profits. Click here 
http://www.fasttrack.co.uk/fasttrack/press/pt11-lon.pdf to read more.


LinkedIn http://www.linkedin.com/companies/25033/Thunderhead twitter 
http://twitter.com/ThunderheadonRSS 
http://www.thunderhead.com/rss/rss.phpYouTube 
http://www.youtube.com/user/ThunderheadOnhttp://thunderheadinnovate.wordpress.com/ 
were-hiring http://thunderhead.com/about/careers.php


The contents of this e-mail are intended for the named addressee only. 
It contains information that may be confidential. Unless you are the 
named addressee or an authorized designee, you may not copy or use it, 
or disclose it to anyone else. If you received it in error please 
notify us immediately and then destroy it.




--
iSYS Software GmbH

Michael Seeberger | Softwareentwickler

+++ Achtung: Wir ziehen am 20.05.2011 um +++

Unsere neue Anschrift:
Grillparzerstr. 10
81675 München
Tel. +49 (0) 89 462328-0
Fax +49 (0) 89 462328-14

Tel: +49 (0) 89 46 23 28-0 | Fax (0) 89 46 23 28-14
email: m.seeber...@isys-software.de
Lucile-Grahn-Str. 37 | D-81675 Muenchen
www.isys-software.de

Sitz der Gesellschaft: München | HRB 111760
Geschaeftsfuehrer: Prof. Dr. Peter Mandl und Michael Sailer



Re: Problem with whitespace-treatment

2011-05-11 Thread Michael Seeberger

Hi George,

the reason is, that the text comes form an textarea,
in which a customer can insert any text he or she wants to.

regards,
Michael

Am 11.05.2011 16:03, schrieb Georg Datterl:


Hallo Michael,

Is there a reason why you don't split the text into 9 parts and use a 
table?


Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh

Gutenstetter Straße 8a

90449 Nürnberg

HRB Nürnberg: 17193

Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26

Fax: 0911/36 78 88 - 20

www.geneon.de http://www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH: www.irs-nbg.de 
http://www.irs-nbg.de


Willmy PrintMedia GmbH: www.willmy.de http://www.willmy.de

Willmy Consult  Content GmbH: www.willmycc.de http://www.willmycc.de

*Von:*Michael Seeberger [mailto:michael.seeber...@isys-software.de]
*Gesendet:* Mittwoch, 11. Mai 2011 15:37
*An:* fop-users@xmlgraphics.apache.org
*Betreff:* Problem with whitespace-treatment

Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 
and can't get my text formatted the way i want to:


my formatted text is (leading whitespaces before Bank, BLZ, Konto and 
Empfänger)


Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.


the value in my xml-tag is:

abrechnungsfreitext isMonospace=false text=
Bank:   X#xA;BLZ:
X#xA;Konto:  X#xA;
Empfänger:  X#xA;#xA;Gutschriften überweisen wir auf 
die uns seinerzeit mitgeteilte Bankverbindung. Sofern sich diese 
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe. /


i tried several combinations of white-space-collapse, 
white-space-treatment and linefeed-treatment. For example when using


1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*preserve *or *ignore-if-before-linefeed*
= The text Gutschriften überweisen  gets wrapped at diese 
and a leading whitespace is added to the following line so it looks 
like this:


Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 geändert haben sollte, bitten wir zur Vermeidung von 
Fehlbuchungen um Bekanntgabe.


2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*ignore-if-after-linefeed* or 
*ignore-if-surrounding-linefeed*
= The leading whitespaces before Bank, BLZ etc. are beeing 
ignored so the text is printed this way;



Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen 
um Bekanntgabe.


Is there a way to prevent FOP from deleting the inserted whitespaces 
before Bank, and inserting a whitespace when performing an automatic 
linebreak??


I hope you get my point and can help me.

Thx
Michael Seeberger



--
iSYS Software GmbH

Michael Seeberger | Softwareentwickler

+++ Achtung: Wir ziehen am 20.05.2011 um +++

Unsere neue Anschrift:
Grillparzerstr. 10
81675 München
Tel. +49 (0) 89 462328-0
Fax +49 (0) 89 462328-14

Tel: +49 (0) 89 46 23 28-0 | Fax (0) 89 46 23 28-14
email: m.seeber...@isys-software.de
Lucile-Grahn-Str. 37 | D-81675 Muenchen
www.isys-software.de

Sitz der Gesellschaft: München | HRB 111760
Geschaeftsfuehrer: Prof. Dr. Peter Mandl und Michael Sailer



Re: Problem with whitespace-treatment

2011-05-11 Thread Michael Seeberger

Hi Georg,

you're right .. in this case the user is responsible for correctly 
inserting the text.

So there is no way to get this done with setting the attributes correctly?

Michael

Am 11.05.2011 16:18, schrieb Georg Datterl:


Hi Michael,

So if the user misses a blank, the alignment goes to hell? If yes, try 
to replace all blanks with nbsp; (or all double blanks with two nbsp, 
if you still want a break in the text). Ugly, but could work.


Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh

Gutenstetter Straße 8a

90449 Nürnberg

HRB Nürnberg: 17193

Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26

Fax: 0911/36 78 88 - 20

www.geneon.de http://www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH: www.irs-nbg.de 
http://www.irs-nbg.de


Willmy PrintMedia GmbH: www.willmy.de http://www.willmy.de

Willmy Consult  Content GmbH: www.willmycc.de http://www.willmycc.de

*Von:*Michael Seeberger [mailto:michael.seeber...@isys-software.de]
*Gesendet:* Mittwoch, 11. Mai 2011 16:13
*An:* fop-users@xmlgraphics.apache.org
*Betreff:* Re: Problem with whitespace-treatment

Hi George,

the reason is, that the text comes form an textarea,
in which a customer can insert any text he or she wants to.

regards,
Michael

Am 11.05.2011 16:03, schrieb Georg Datterl:

Hallo Michael,

Is there a reason why you don't split the text into 9 parts and use a 
table?


Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh

Gutenstetter Straße 8a

90449 Nürnberg

HRB Nürnberg: 17193

Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26

Fax: 0911/36 78 88 - 20

www.geneon.de http://www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH: www.irs-nbg.de 
http://www.irs-nbg.de


Willmy PrintMedia GmbH: www.willmy.de http://www.willmy.de

Willmy Consult  Content GmbH: www.willmycc.de http://www.willmycc.de

*Von:*Michael Seeberger [mailto:michael.seeber...@isys-software.de]
*Gesendet:* Mittwoch, 11. Mai 2011 15:37
*An:* fop-users@xmlgraphics.apache.org 
mailto:fop-users@xmlgraphics.apache.org

*Betreff:* Problem with whitespace-treatment

Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 
and can't get my text formatted the way i want to:


my formatted text is (leading whitespaces before Bank, BLZ, Konto and 
Empfänger)


Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.


the value in my xml-tag is:

abrechnungsfreitext isMonospace=false text=
Bank:   X#xA;BLZ:
X#xA;Konto:  X#xA;
Empfänger:  X#xA;#xA;Gutschriften überweisen wir auf 
die uns seinerzeit mitgeteilte Bankverbindung. Sofern sich diese 
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe. /


i tried several combinations of white-space-collapse, 
white-space-treatment and linefeed-treatment. For example when using


1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*preserve *or *ignore-if-before-linefeed*
= The text Gutschriften überweisen  gets wrapped at diese 
and a leading whitespace is added to the following line so it looks 
like this:


Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 geändert haben sollte, bitten wir zur Vermeidung von 
Fehlbuchungen um Bekanntgabe.


2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=*ignore-if-after-linefeed* or 
*ignore-if-surrounding-linefeed*
= The leading whitespaces before Bank, BLZ etc. are beeing 
ignored so the text is printed this way;



Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen 
um Bekanntgabe.


Is there a way to prevent FOP from deleting the inserted whitespaces 
before Bank, and inserting a whitespace when performing an automatic 
linebreak??


I hope you get my point and can help me.

Thx
Michael Seeberger



--
iSYS Software GmbH
  
Michael Seeberger | Softwareentwickler
  
+++ Achtung: Wir ziehen am 20.05.2011 um +++
  
Unsere neue Anschrift:

Grillparzerstr. 10
81675 München
Tel. +49 (0) 89 462328-0
Fax +49 (0) 89 462328-14
  
Tel: +49 (0) 89 46 23 28-0 | Fax (0) 89 46 23

Re: Problem with whitespace-treatment

2011-05-11 Thread Pascal Sancho
Hi,

If your '' data don't contain any spaces, you can imagine a XSLT
that replace your string with a fo:table, since you have both line
separator(#xa;) and cell separator (last space before ''). XSLT
gurus will help you for that.

If not, uou have to ensure that the used font is a monospace one, so
there will be no offset from one line to one other.

Le 11/05/2011 16:26, Michael Seeberger a écrit :
 Hi Georg,
 
 you're right .. in this case the user is responsible for correctly
 inserting the text.
 So there is no way to get this done with setting the attributes correctly?
 
 Michael
 
 Am 11.05.2011 16:18, schrieb Georg Datterl:

 Hi Michael,

  

 So if the user misses a blank, the alignment goes to hell? If yes, try
 to replace all blanks with nbsp; (or all double blanks with two nbsp,
 if you still want a break in the text). Ugly, but could work.

  

 Regards,

  

 Georg Datterl

 *Von:*Michael Seeberger [mailto:michael.seeber...@isys-software.de]
 *Gesendet:* Mittwoch, 11. Mai 2011 16:13
 *An:* fop-users@xmlgraphics.apache.org
 *Betreff:* Re: Problem with whitespace-treatment

  

 Hi George,

 the reason is, that the text comes form an textarea,
 in which a customer can insert any text he or she wants to.

 regards,
 Michael

 Am 11.05.2011 16:03, schrieb Georg Datterl:

 Hallo Michael,

  

 Is there a reason why you don’t split the text into 9 parts and use a
 table?

  

 Regards,

  

 Georg Datterl

 *Von:*Michael Seeberger [mailto:michael.seeber...@isys-software.de]
 *Gesendet:* Mittwoch, 11. Mai 2011 15:37
 *An:* fop-users@xmlgraphics.apache.org
 mailto:fop-users@xmlgraphics.apache.org
 *Betreff:* Problem with whitespace-treatment

  

 Hello,

 i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0
 and can't get my text formatted the way i want to:

 my formatted text is (leading whitespaces before Bank, BLZ, Konto and
 Empfänger)

 Bank:  X
 BLZ:X
 Konto: X
 Empfänger:X

 Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte
 Bankverbindung. Sofern sich diese
 geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um
 Bekanntgabe.

 the value in my xml-tag is:

 abrechnungsfreitext isMonospace=false text=   
 Bank:   X#xA;BLZ:   
 X#xA;Konto:  X#xA;   
 Empfänger:  X#xA;#xA;Gutschriften überweisen wir auf
 die uns seinerzeit mitgeteilte Bankverbindung. Sofern sich diese
 geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um
 Bekanntgabe. /

 i tried several combinations of white-space-collapse,
 white-space-treatment and linefeed-treatment. For example when using

 1. white-space-collapse=false, linefeed-treatment=preserve,
 white-space-treatment=*preserve *or *ignore-if-before-linefeed*
 = The text Gutschriften überweisen  gets wrapped at diese
 and a leading whitespace is added to the following line so it looks
 like this:

 Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte
 Bankverbindung. Sofern sich diese
  geändert haben sollte, bitten wir zur Vermeidung von
 Fehlbuchungen um Bekanntgabe.

 2. white-space-collapse=false, linefeed-treatment=preserve,
 white-space-treatment=*ignore-if-after-linefeed* or
 *ignore-if-surrounding-linefeed*
 = The leading whitespaces before Bank, BLZ etc. are beeing
 ignored so the text is printed this way;


 Bank:  X
 BLZ:X
 Konto: X
 Empfänger:X

 Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte
 Bankverbindung. Sofern sich diese
 geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen
 um Bekanntgabe.

 Is there a way to prevent FOP from deleting the inserted whitespaces
 before Bank, and inserting a whitespace when performing an automatic
 linebreak??

 I hope you get my point and can help me.

 Thx
 Michael Seeberger



 -- 
 iSYS Software GmbH
  
 Michael Seeberger | Softwareentwickler
 
 -- 
 iSYS Software GmbH
 
 Michael Seeberger | Softwareentwickler

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Problem with whitespace-treatment

2011-05-11 Thread Eric Douglas
I couldn't get it to print blank spaces properly either.  If you can modify 
your xml the simple solution is to replace all spaces.
I replace blank spaces with #160;



From: Michael Seeberger [mailto:michael.seeber...@isys-software.de] 
Sent: Wednesday, May 11, 2011 9:37 AM
To: fop-users@xmlgraphics.apache.org
Subject: Problem with whitespace-treatment


Hello,

i have a problem with whitespace-treatment in FOP. I'm using FOP 1.0 and can't 
get my text formatted the way i want to:

my formatted text is (leading whitespaces before Bank, BLZ, Konto and Empfänger)

Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte Bankverbindung. 
Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

the value in my xml-tag is:

abrechnungsfreitext isMonospace=false text=Bank:   
X#xA;BLZ:X#xA;Konto:  
X#xA;Empfänger:  X#xA;#xA;Gutschriften überweisen 
wir auf die uns seinerzeit mitgeteilte Bankverbindung. Sofern sich diese 
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe. /

i tried several combinations of white-space-collapse, white-space-treatment and 
linefeed-treatment. For example when using

1. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=preserve or ignore-if-before-linefeed
= The text Gutschriften überweisen  gets wrapped at diese and a 
leading whitespace is added to the following line so it looks like this:

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
 geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

2. white-space-collapse=false, linefeed-treatment=preserve, 
white-space-treatment=ignore-if-after-linefeed or ignore-if-surrounding-linefeed
= The leading whitespaces before Bank, BLZ etc. are beeing ignored so 
the text is printed this way;


Bank:  X
BLZ:X
Konto: X
Empfänger:X

Gutschriften überweisen wir auf die uns seinerzeit mitgeteilte 
Bankverbindung. Sofern sich diese
geändert haben sollte, bitten wir zur Vermeidung von Fehlbuchungen um 
Bekanntgabe.

Is there a way to prevent FOP from deleting the inserted whitespaces before 
Bank, and inserting a whitespace when performing an automatic linebreak??

I hope you get my point and can help me.

Thx
Michael Seeberger