Table text alignment

2005-01-18 Thread David P. Nesbitt
I am having an issue with table alignment where the
first column is text-align=right and the next column
is text-align=left.  I cannot seem to get any space
between the two columns.  padding-right and
padding-left, respectively, do not seem to work.

Is there some trick to do this?

Regards,
Dave



__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



Re: Table text alignment

2005-01-18 Thread Jeremias Maerki
Sometimes you have to play around a bit. In short: padding works on
table-cells. See the attachment.

On 18.01.2005 02:05:29 David P. Nesbitt wrote:
 I am having an issue with table alignment where the
 first column is text-align=right and the next column
 is text-align=left.  I cannot seem to get any space
 between the two columns.  padding-right and
 padding-left, respectively, do not seem to work.
 
 Is there some trick to do this?


Jeremias Maerki


DavidNesbitt.fo
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Question about image alignment

2004-11-30 Thread Johan Andersson
Hi all,
If an image resides inside a table cell that is larger than the image, 
how can one specify how the image should be aligned with regards to the 
cell? What I'm trying to accomplish is to align the image with the lower 
right corner of the cell if the image doesn't fill the entire cell.

Regards,
Johan Andersson
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Question about image alignment

2004-11-30 Thread mathieu . fretiere
align the image with the lower right corner of the cell

try :

fo:table-cell display-align=after
fo:block text-align=right
fo:external-graphic src=url('images/my_image.svg') /
/fo:block 
/fo:table-cell

it works but I get some small blank spaces between the graphic and the 
border of the cell (I use a svg graphic).
If you find a solution please tell me.

Mat.

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



Re: Question about image alignment

2004-11-30 Thread Johan Andersson
Hi Mathieu,
Thank you very much for your quick reply. Regarding your problem with 
the small gap between the graphic and the cell border. How about giving 
a negative padding for the cell on the side where the gap is?

Regards,
Johan Andersson
[EMAIL PROTECTED] wrote:
align the image with the lower right corner of the cell

try :
fo:table-cell display-align=after
fo:block text-align=right
fo:external-graphic src=url('images/my_image.svg') /
/fo:block 
/fo:table-cell

it works but I get some small blank spaces between the graphic and the 
border of the cell (I use a svg graphic).
If you find a solution please tell me.

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


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


RE: Question about image alignment

2004-11-30 Thread Daniel Easton
I know this is a bit off topic but just a thought - the small gap might
go away if the code is all on one line ?  There's a similar thing with
IE and html when displaying an image:

tr
td
img src=myimage.gif /
/td
/tr

Will give a gap on some sides of the image (right and bottom I think)
image but

trtdimg src=myimage.gif //td/tr

Will not.

So perhaps 
fo:table-cell display-align=afterfo:block
text-align=rightfo:external-graphic src=url('images/my_image.svg')
//fo:block/fo:table-cell

Might work ??

Daniel



-Original Message-
From: Johan Andersson [mailto:[EMAIL PROTECTED] 
Sent: 30 November 2004 12:57
To: [EMAIL PROTECTED]
Subject: Re: Question about image alignment


Hi Mathieu,

Thank you very much for your quick reply. Regarding your problem with 
the small gap between the graphic and the cell border. How about giving 
a negative padding for the cell on the side where the gap is?

Regards,

Johan Andersson


[EMAIL PROTECTED] wrote:
align the image with the lower right corner of the cell
 
 
 try :
 
 fo:table-cell display-align=afterfo:block
text-align=rightfo:external-graphic src=url('images/my_image.svg')
//fo:block/fo:table-cell
 
 it works but I get some small blank spaces between the graphic and the
 border of the cell (I use a svg graphic).
 If you find a solution please tell me.
 
 Mat.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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





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



text alignment

2004-10-19 Thread Timo . Roessner
hi, 

i got a problem which hasn 't been described in the mailing list archives.

i have a standard block article, what i know want is that the right-most
char of every line of text output 
is exactly aligned to every other right-most char of the other lines of this
article.
in other words, is there a way i can tell fop to adjust char padding in a
way that the left-most /
right-most char of a line is exactly aligned to that of the other lines?

thanks in advance, Timo Roessner

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



Re: text alignment

2004-10-19 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
hi, 

i got a problem which hasn 't been described in the mailing list archives.
i have a standard block article, what i know want is that the right-most
char of every line of text output 
is exactly aligned to every other right-most char of the other lines of this
article.
in other words, is there a way i can tell fop to adjust char padding in a
way that the left-most /
right-most char of a line is exactly aligned to that of the other lines?
This is the definition of justified text. To justify a block of text, use the 
text-align=justify attribute, e.g.

fo:block text-align=justify
The fox jumped over the lazy cow. The fox jumped over the lazy cow. The fox 
jumped over the lazy cow. The fox jumped over the lazy cow. The fox jumped 
over the lazy cow. The fox jumped over the lazy cow. The fox jumped over the 
lazy cow. The fox jumped over the lazy cow. The fox jumped over the lazy cow. 
The fox jumped over the lazy cow.
/fo:block

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


background image alignment in a table cell

2004-08-27 Thread A. ROY
Hi all,

I'd like to put a background image in table cells. My background image width is 
greater than my cells width.
In some cells I'd lke to have the left part of my image. There is no problem 
for that. It's the default behaviour.
In other cells I'd like to have the right part of my image. I tried : 
background-position-horizontal=right, but it isn't yet implemented in FOP 
0.20.5.
Does anybody know a workaround to insert my background image in a table cell 
beginning by the right side ?

Regards

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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



Re: page citation alignment issue

2004-06-29 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
Hi,
I am using the latest version of FOP and it still appears to have a page alignment problem. I have multiple page citations on the same line. For every citation the right alignment is affected by a small amount. See below XSL:
From your XSLT snippet provided, it looks like you are inserting non breaking 
spaces after the page number citation, so this makes sense. Am I right in 
thinking you are trying to split lists of page numbers into groups of 5 per 
line? I think the problem is in your xsl logic. Make sure you dont insert a 
nbsp after the 5th or last page-number-citation.

To confirm what is going on, use xalan.bat provided with the FOP distribution 
to generate a intermediate XSL-FO file from your XML and XSL files. I think 
you will be see nbsp characters after the page number citations.

snip/
Chris

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


RE: page citation alignment issue

2004-06-29 Thread Stuart . Yoxall
Hi,

Yes I intend to split to another line after 5 citations. The non breaking space 
is used only after each page citation i.e. 3, 4, 5

see below interim fop file snippet:

fo:table-row
fo:table-cell font-size=8 color=rgb(0%,0%,50.196%) font-family=Arial
fo:blockConsumer, Cyclical/fo:block
/fo:table-cell
fo:table-cell font-size=8 color=rgb(0%,0%,50.196%) font-family=Arial
fo:block margin-right=0.02cm text-align=right
fo:page-number-citation ref-id=link.note.1 /
fo:wrapper, /fo:wrapper
fo:page-number-citation ref-id=link.note.6 /
fo:wrapper, /fo:wrapper
fo:page-number-citation ref-id=link.note.11 /
fo:wrapper, /fo:wrapper
fo:page-number-citation ref-id=link.note.15 /
fo:wrapper, /fo:wrapper
fo:page-number-citation ref-id=link.note.25 /, ?
fo:page-number-citation ref-id=link.note.29 /
fo:wrapper, /fo:wrapper
fo:page-number-citation ref-id=link.note.32 /
fo:wrapper, /fo:wrapper
fo:page-number-citation ref-id=link.note.34 /
fo:wrapper, /fo:wrapper
fo:page-number-citation ref-id=link.note.39 /
fo:wrapper, /fo:wrapper
fo:page-number-citation ref-id=link.note.42 /, ?
fo:page-number-citation ref-id=link.note.43 /
/fo:block
/fo:table-cell
/fo:table-row

As can be seen there is a space after the comma and before the next citation 
which is what I want. However the problem is that  the right alignment of the 
last citation is not accurate - the error distance from the right hand side 
increases with the number of citations on the line.


-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 09:55
To: [EMAIL PROTECTED]
Subject: Re: page citation alignment issue


[EMAIL PROTECTED] wrote:
 Hi,
 
 I am using the latest version of FOP and it still appears to have a page 
 alignment problem. I have multiple page citations on the same line. For every 
 citation the right alignment is affected by a small amount. See below XSL:

 From your XSLT snippet provided, it looks like you are inserting non breaking 
spaces after the page number citation, so this makes sense. Am I right in 
thinking you are trying to split lists of page numbers into groups of 5 per 
line? I think the problem is in your xsl logic. Make sure you dont insert a 
nbsp after the 5th or last page-number-citation.

To confirm what is going on, use xalan.bat provided with the FOP distribution 
to generate a intermediate XSL-FO file from your XML and XSL files. I think 
you will be see nbsp characters after the page number citations.

snip/

Chris



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


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: page citation alignment issue

2004-06-29 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
Hi,
Yes I intend to split to another line after 5 citations. The non breaking space 
is used only after each page citation i.e. 3, 4, 5
see below interim fop file snippet:
fo:table-row
fo:table-cell font-size=8 color=rgb(0%,0%,50.196%) font-family=Arial
fo:blockConsumer, Cyclical/fo:block
/fo:table-cell
fo:table-cell font-size=8 color=rgb(0%,0%,50.196%) font-family=Arial
fo:block margin-right=0.02cm text-align=right
fo:page-number-citation ref-id=link.note.1 /
fo:wrapper, /fo:wrapper
fo:page-number-citation ref-id=link.note.6 /
fo:wrapper, /fo:wrapper
fo:page-number-citation ref-id=link.note.11 /
fo:wrapper, /fo:wrapper
fo:page-number-citation ref-id=link.note.15 /
fo:wrapper, /fo:wrapper
fo:page-number-citation ref-id=link.note.25 /, ?
I'm assuming the ? above is a ZWS character, which is where FOP breaks the 
line. There is also a space (which I think is nbsp, from looking at your code) 
between the comma and the ?. I believe this is causing the alignment problems. 
review your xsl logic.

snip/
Chris

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


RE: page citation alignment issue

2004-06-29 Thread Stuart . Yoxall
Chris - reviewed logic - not sure I understand what is wrong:

have attached a cut down XSL and XML file where the page nos are indicated by 
the Letter T. As you can see the right alignment is still out. (ignore the 
overwriting of the text!)

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 10:53
To: [EMAIL PROTECTED]
Subject: Re: page citation alignment issue


[EMAIL PROTECTED] wrote:

 Hi,
 
 Yes I intend to split to another line after 5 citations. The non breaking 
 space is used only after each page citation i.e. 3, 4, 5
 
 see below interim fop file snippet:
 
 fo:table-row
 fo:table-cell font-size=8 color=rgb(0%,0%,50.196%) font-family=Arial
 fo:blockConsumer, Cyclical/fo:block
 /fo:table-cell
 fo:table-cell font-size=8 color=rgb(0%,0%,50.196%) font-family=Arial
 fo:block margin-right=0.02cm text-align=right
 fo:page-number-citation ref-id=link.note.1 /
 fo:wrapper, /fo:wrapper
 fo:page-number-citation ref-id=link.note.6 /
 fo:wrapper, /fo:wrapper
 fo:page-number-citation ref-id=link.note.11 /
 fo:wrapper, /fo:wrapper
 fo:page-number-citation ref-id=link.note.15 /
 fo:wrapper, /fo:wrapper
 fo:page-number-citation ref-id=link.note.25 /, ?

I'm assuming the ? above is a ZWS character, which is where FOP breaks the 
line. There is also a space (which I think is nbsp, from looking at your code) 
between the comma and the ?. I believe this is causing the alignment problems. 
review your xsl logic.

snip/

Chris



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

?xml version=1.0 encoding=UTF-8?
?xmlspyxslfo C:\localcode\xmlsamples\table.xsl?
Table heading=Sectors in this issue name=SectorsInIssueTable
	Rows
		Row label=Consumer, Non-Cyclical
			Value text=17/
		/Row
		Row label=Valuation amp; Accounting
			Value text=5/
		/Row
		Row label=Consumer, Cyclical
			Value text=1/
			Value text=6/
			Value text=11/
			Value text=15/
			Value text=25/
			Value text=29/
			Value text=32/
			Value text=34/
			Value text=39/
			Value text=42/
			Value text=43/
		/Row
		Row label=Healthcare
			Value text=8/
			Value text=35/
			Value text=37/
			Value text=48/
		/Row
		Row label=Technology
			Value text=2/
			Value text=10/
			Value text=12/
			Value text=14/
			Value text=16/
			Value text=19/
			Value text=21/
			Value text=22/
			Value text=23/
			Value text=24/
			Value text=27/
			Value text=46/
		/Row
		Row label=Basic Materials
			Value text=18/
			Value text=36/
		/Row
		Row label=Industrial
			Value text=20/
			Value text=30/
			Value text=31/
			Value text=47/
		/Row
		Row label=Financial
			Value text=7/
			Value text=13/
			Value text=28/
			Value text=38/
		/Row
		Row label=Energy
			Value text=9/
		/Row
		Row label=Telecommunications
			Value text=40/
			Value text=41/
			Value text=44/
			Value text=45/
		/Row
		Row label=Quantitative
			Value text=3/
		/Row
		Row label=Equity Strategy and Economics
			Value text=4/
			Value text=26/
			Value text=33/
		/Row
	/Rows
/Table


table.xsl
Description: table.xsl

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

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

page citation alignment issue

2004-06-28 Thread Stuart . Yoxall
Hi,

I am using the latest version of FOP and it still appears to have a page 
alignment problem. I have multiple page citations on the same line. For every 
citation the right alignment is affected by a small amount. See below XSL:

fo:table-cell font-family=Arial color=rgb(0%,0%,50.196%) font-size=8
fo:block text-align=right margin-right=0.02cm
xsl:for-each select=Value
xsl:if test=not($summary_type = 'none')
xsl:variable name=note_num select=./@text/
fo:page-number-citation
xsl:attribute name=ref-idxsl:value-of select=concat('link.note.' , 
$note_num)//xsl:attribute
/fo:page-number-citation
xsl:choose
xsl:when test=position() mod 5 = 0 and position()!=last()
xsl:text,#0160;/xsl:text#x200b;/xsl:when
xsl:otherwise
xsl:if test=position()!=last()
fo:wrapper
xsl:text,#0160;/xsl:text
/fo:wrapper
/xsl:if
/xsl:otherwise
/xsl:choose
/xsl:if
/xsl:for-each
/fo:block
fo:table-cell

gives the attached output:

any help appreciated

attachment: table.bmp
Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

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

Text alignment problem

2004-06-02 Thread Johan Andersson
In the PDF document resulting from the FO file below the two words 
Element and Matter are missaligned. I know one can indent the 
content of a block using the text-indent attribute. But how does one 
know how much the block should be indented? Can this be calculated from 
the font used?

fo:flow flow-name=xsl-region-body
  fo:block font-family=sans-serif font-size=10mm
Element
  /fo:block
  fo:block font-family=sans-serif font-size=6mm
Matter
  /fo:block
/fo:flow
Regards,
Johan Andersson
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Text alignment problem

2004-06-02 Thread Chris Bowditch
Johan Andersson wrote:
In the PDF document resulting from the FO file below the two words 
Element and Matter are missaligned. I know one can indent the 
content of a block using the text-indent attribute. But how does one 
know how much the block should be indented? Can this be calculated from 
the font used?
How are they misaligned? They should be left aligned, so do you mean you want 
them right aligned? try text-align=right on each block.

snip/
Chris

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


alignment question

2004-02-02 Thread Koes, Derrick








If my image is centered, how do I get the next line (of
text) to start at the left edge of the image?



Thanks,

Derrick









This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee.  It may contain information which is covered by legal, professional or other privilege.  If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission.  If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.


Re: alignment question

2004-02-02 Thread J.Pietschmann
Koes, Derrick wrote:
If my image is centered, how do I get the next line (of text) to start at
the left edge of the image?
That's a though one. I suggest using a table for centering, and
put the text in another row, roughly:
 fo:table table-layout=fixed width=100%
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-column column-width={$your-image-width}/
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-body
 fo:table-row
   fo:table-cell/
   fo:table-cell
 fo:block
fo:external-image src=.../
 /fo:block
   /fo:table-cell
   fo:table-cell/
 /fo:table-row
 fo:table-row
   fo:table-cell/
   fo:table-cell number-of columns spanned=2
  fo:blocktext.../fo:block
   /fo:table-cell
   fo:table-cell/
 /fo:table-row
   /fo:table-body
 /fo:table
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Table-Cell vertical alignment

2004-01-15 Thread Blasius, Dirk
Hi all,

Is it possible with fop 0.20.5 to align content on the bottom of a table cell. 
Like in HTML with valign=bottom tag? I searched the web, but could not find a 
solution.

Thanks,

Dirk

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



AW: AW: AW: AW: Number alignment in TOC

2003-04-30 Thread Anton Wardaschko (PA)
Hi!


Sorry, it cuts off just before it gets interesting. 


Sorry. ;-)


You can start with a copy of your real file and successively cut stuff.


It's a little bit confusing, but i'm find to my surprise, that the problem with 
the sect2 apperas only than when i generated the abstract part of bookinfo. I 
commented parts out and firstly it looks like the problem come from a table in 
an abstract section. When i comment this table out the whole output of TOC is 
OK. But after i tried to create a small file with only two sect1 and two sect2 
in each of sect1 and with the table in bookinfo i get an ouput where only one 
number of sect2 don't fit, like a russian roulette. 

I attach here as you wish the whole fo file where the correct output can be 
reached after commentig out the table with the address. I see, thtat if i use 
instead of the table something other, there will be no more problem with the 
toc numbers, but perhaps can somebody explain why i get this behavior.


Here just my xml and xsl code for the table

XML-Code:

informaltable frame=none
tgroup cols=1 colsep=0 rowsep=0
colspec colname=c1 /
tbody
rowentryYou can contact VarySys Technologies GmbH 
amp; Co.KG at:/entry/row
rowentrynbsp;/entry/row
rowentryVarySys Technologies GmbH amp; 
Co.KG/entry/row
rowentryMouml;nchhaldenstraszlig;e 
28/entry/row
rowentryD ndash; 70191 Stuttgart/entry/row
rowentrynbsp;/entry/row
rowentryTel.: (07 11) 2 50 11 98/entry/row
rowentryFax: (07 11) 2 50 11 97/entry/row
rowentryEmail: ulink url=mailto:[EMAIL 
PROTECTED][EMAIL PROTECTED]/ulink/entry/row
rowentry
Internet: 
ulink 
url=http://www.varysys.com;http://www.varysys.com/ulink
  /entry
/row
/tbody
/tgroup
/informaltable

XSL-Code:

xsl:template match=[EMAIL PROTECTED]'none']

fo:table   table-layout=fixed 
width={$default.table.width} 
padding-top={$body.font.master}pt
keep-together=always
keep-with-next=always
  xsl:apply-templates /
/fo:table

/xsl:template


CU
Anton



attachment: PacketAlarm.zip
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Help with Character Entities (was Re: Number alignment in TOC)

2003-04-30 Thread Clay Leeds
Sounds like you didn't define the the ndash; ENTITY (and after
defiining it, you can use it as you are currently doing:

!ENTITY ndash #8211;

Or you could just replace the ndash; with it's numeric reference
#8211;.

I'm sure there are many places on the internet to find the Character
Entity Reference, but here's one I found:

http://xmlfr.org/listes/xml-tech/2001/08/0135.html

Good luck!

Anton Wardaschko (PA) wrote:
 Hi!
 
 It is unbelievable and i can't understand it, but the problem seems to be not 
 hte whole table, but only one row in it:
 
 rowentryD ndash; 70191 Stuttgart/entry/row
 
 If i write instead of it Deutschland 70191 Stuttgart, so the output is 
 correct. It is a nonsens! I can't understand it, but all the TOC-Numbers are 
 after this change correct...
 
 
 CU
 Anton


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


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



AW: Help with Character Entities (was Re: Number alignment in TOC)

2003-04-30 Thread anton
Hi!


Sounds like you didn't define the the ndash; ENTITY (and after
defiining it, you can use it as you are currently doing:

!ENTITY ndash #8211;


The Entity is defined in the DocBook DTD and works. As i already says, i
don't understand this behavior, but it it works now.


CU
Anton


smime.p7s
Description: S/MIME cryptographic signature


Re: AW: AW: AW: AW: Number alignment in TOC

2003-04-30 Thread J.Pietschmann
Anton Wardaschko (PA) wrote:
It's a little bit confusing, but i'm find to my surprise, that the problem
with the sect2 apperas only than when i generated the abstract part of
bookinfo. I commented parts out and firstly it looks like the problem come
from a table in an abstract section. When i comment this table out the whole
output of TOC is OK. But after i tried to create a small file with only two
sect1 and two sect2 in each of sect1 and with the table in bookinfo i get an
ouput where only one number of sect2 don't fit, like a russian roulette.
I attach here as you wish the whole fo file where the correct output can be
reached after commentig out the table with the address. I see, thtat if i use
instead of the table something other, there will be no more problem with the
toc numbers, but perhaps can somebody explain why i get this behavior.
Are you sure the table is the problem? I can't quite reproduce the
problem, most probably because I don't use Arial. It may be it is
cause by improper metrics for bold dots, or something like this.
With a PDF standard font the numbers line up although it visually
seems the bold numbers areplaced just a notch more to the right.
J.Pietschmann

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


RE: AW: Number alignment in TOC

2003-04-29 Thread Victor Mote
Anton Wardaschko (PA) wrote:

 Unfortunatly you wrote firstly only mantain without branch
 number. So i thougt, that the main may be correct.

 How can i see, which version of FOP contain the branch? I mean,
 that branch fop-0_20_2-maintain contains fop version 0.20.5rc3,
 so the number of the branch do not fit the number of the
 fop-version and i don't find in the WebCVS
http://cvs.apache.org/viewcvs.cgi/xml-fop/ overview out how to see the
really FOP-Version inside this branch.

Actually, what he wrote was:

--start--
Be sure to get the code from the maintenance branch:
  http://xml.apache.org/fop/dev/index.html#lines
--end--

The answer to your question is clearly listed at that link. There is no
necessary relationship between CVS revision numbers or branch tags with
release numbers.

Victor Mote


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



AW: AW: AW: Number alignment in TOC

2003-04-29 Thread Anton Wardaschko (PA)
Hi!


 The output of the TOC-Numbers looks now much better, but it is not perfect.
 The Numbers of sect2 fit not exact with the oders. Is this problem known and
 would be corrected in the next version?

Could you supply a slightly more explicit problem description, preferably
augmented by a small, self-contained FO document demonstrating it? Not
everyone around has a clone of your DocBook development environment
installed.


DocBook DTD 4.2
XSL-Stylesheet  1.60.1 from Norm Walsh
FOP 0.25.5rc3

See the screenshot. Chapters and all the sections numbers are OK, only the 
sect2 Numbers do not fit. 

The FO-File is hard to read, cause of no indents in the TOC-generated parts, a 
part of fo file is attached to this mail too. 


CU
Anton
attachment: toc-0.20.5rc3.gifattachment: toc.zip
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: AW: AW: AW: Number alignment in TOC

2003-04-29 Thread J.Pietschmann
Anton Wardaschko (PA) wrote:
See the screenshot. Chapters and all the sections numbers are OK, only the
sect2 Numbers do not fit.
The FO-File is hard to read, cause of no indents in the TOC-generated parts,
a part of fo file is attached to this mail too.
Sorry, it cuts off just before it gets interesting. I can't do anything
without data to reproduce the problem. If you could produce a *simple*
*small* DocBook file with just a sect1/sect2 and enough text to reproduce
the problem and post the *complete* fo file it would be much more helpful.
You can start with a copy of your real file and successively cut stuff.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: AW: Number alignment in TOC

2003-04-28 Thread Anton Wardaschko (PA)
Hi!


 [INFO] 1.0dev
  I told you to be sure to get the code from the maintenance branch. The
branch tag is fop-0_20_2-maintain.


Unfortunatly you wrote firstly only mantain without branch number. So i 
thougt, that the main may be correct.

How can i see, which version of FOP contain the branch? I mean, that branch 
fop-0_20_2-maintain contains fop version 0.20.5rc3, so the number of the branch 
do not fit the number of the fop-version and i don't find in the WebCVS 
http://cvs.apache.org/viewcvs.cgi/xml-fop/ overview out how to see the really 
FOP-Version inside this branch. 

The output of the TOC-Numbers looks now much better, but it is not perfect. The 
Numbers of sect2 fit not exact with the oders. Is this problem known and would 
be corrected in the next version? 


CU
Anton

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



AW: Number alignment in TOC

2003-04-25 Thread anton
Hi!


The problem is already fixed, but the code is not yet released.
You can get it from CVS, see
  http://xml.apache.org/fop/download.html
Be sure to get the code from the maintenance branch:
  http://xml.apache.org/fop/dev/index.html#lines


So, i get the sources and compiled it with the newest SDK under Windows.
There were no errors but when i wish to render my fo-File, i get the
following errot:

Exception in thread main java.lang.NoClassDefFoundError:
org/apache/fop/apps/Fop

I checked the generated file fop.jar, the class is there and the path's
seems to be OK too. The Path to the fop.jat in my bath files must be also
correct, cause i overwrite the old fop.jar with the new version.

There was generated another file too, not sure about the exact name,
something like pdf-transformer.jar, for what ist this file to use?


CU
Anton


smime.p7s
Description: S/MIME cryptographic signature


RE: Number alignment in TOC

2003-04-25 Thread Victor Mote
anton wrote:

 So, i get the sources and compiled it with the newest SDK under Windows.
 There were no errors but when i wish to render my fo-File, i get the
 following errot:

 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/fop/apps/Fop

 I checked the generated file fop.jar, the class is there and the path's
 seems to be OK too. The Path to the fop.jat in my bath files must be also
 correct, cause i overwrite the old fop.jar with the new version.

It looks like the fop.jar file is not in your CLASSPATH. See:
http://xml.apache.org/fop/running.html#Starting+FOP+as+a+standalone+applicat
ion.
The usual practice would be to run either fop.bat or fop.sh to get all of
the correct settings. If you need to do something different, review those
scripts to make sure your solution covers all of the necessary steps.

Victor Mote


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



AW: Number alignment in TOC

2003-04-25 Thread anton
Hi!


The usual practice would be to run either fop.bat or fop.sh to get all of
the correct settings. If you need to do something different, review those
scripts to make sure your solution covers all of the necessary steps.


I try it at home, cause' at work i don't have many right's on the system.

And I get following error:

[INFO] 1.0dev
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/commons/io/output/Co
untingOutputStream
at org.apache.fop.pdf.PDFFactory.makeStream(PDFFactory.java:1206)
at
org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:466)
at
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:117)
at org.apache.fop.area.AreaTree.addPage(AreaTree.java:141)
at
org.apache.fop.layoutmgr.PageLayoutManager.finishPage(PageLayoutManager.ja
va:49


The class CountingOutputStream in fact didn't exist. Why? It was compiled
without errors. Where i can get this class and where i should put it, so
the fop will work?


CU
Anton


smime.p7s
Description: S/MIME cryptographic signature


Re: AW: Number alignment in TOC

2003-04-25 Thread J.Pietschmann
anton wrote:
And I get following error:
[INFO] 1.0dev
 I told you to be sure to get the code from the maintenance branch. The
branch tag is fop-0_20_2-maintain.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


vertical alignment of fo:block

2003-04-24 Thread Todtenhaupt, Susann
Hello!

I've tried to align fo:blocks in a fo:block-container vertically. But I
failed... Is it possible at all?

Thanx in advance!

suse

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



Re: vertical alignment of fo:block

2003-04-24 Thread Roberto Calanca
Hi Susann,

I'm new with fo:, but for vertical alignment of fo:block had good results
using table and inserting each block in a cell.

 have a nice day

Roberto

==
RC Software di Roberto Calanca
Consulenza informatica e Sviluppo Software
Via della Vite, 7
41041 Casinalbo (Mo)
e-mail [EMAIL PROTECTED]
www.rc-software.it



- Original Message -
From: Todtenhaupt, Susann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 24, 2003 8:58 AM
Subject: vertical alignment of fo:block


 Hello!

 I've tried to align fo:blocks in a fo:block-container vertically. But I
 failed... Is it possible at all?

 Thanx in advance!

 suse

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



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



Re: vertical alignment of fo:block

2003-04-24 Thread J.Pietschmann
Todtenhaupt, Susann wrote:
I've tried to align fo:blocks in a fo:block-container vertically. But I
failed... Is it possible at all?
See
 http://xml.apache.org/fop/faq.html#fo-center
J.Pietschmann

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


Number alignment in TOC

2003-04-24 Thread anton
Hi!

see the Screenshot. The alignment of the numbers is not exact. What should
i do to fix it?

I use DocBook with Norm's stelysheet version 1.60.1

Here is a part from the toc.line template.

!-- Unterkapitel sect2 normal --
xsl:when test=local-name(.)='sect2'
 fo:block  text-align-last=justify
end-indent={$toc.indent.width}pt
last-line-end-indent=-{$toc.indent.width}pt
fo:inline keep-with-next.within-line=always
  fo:basic-link internal-destination={$id}
xsl:if test=$label != ''
  xsl:copy-of select=$label/
  xsl:value-of select=$autotoc.label.separator/
/xsl:if
  xsl:apply-templates select=. mode=title.markup/
  /fo:basic-link
/fo:inline

fo:inline keep-together.within-line=always
  xsl:text /xsl:text
  fo:leaderleader-pattern=dots
leader-pattern-width=3pt
leader-alignment=reference-area
keep-with-next.within-line=always/
  xsl:text /xsl:text
  fo:basic-link internal-destination={$id}
fo:page-number-citation ref-id={$id}/
  /fo:basic-link
/fo:inline
  /fo:block
/xsl:when

CU
Anton

P.S.

Pietschman, thanks for answering my question about list marks. I'll try it
tomorow.
attachment: pdf-toc-pagenumbers2.gif

smime.p7s
Description: S/MIME cryptographic signature


Re: Number alignment in TOC

2003-04-24 Thread J.Pietschmann
anton wrote:
see the Screenshot. The alignment of the numbers is not exact. What should
i do to fix it?
See
 http://xml.apache.org/fop/faq.html#page-number-align
The problem is already fixed, but the code is not yet released.
You can get it from CVS, see
 http://xml.apache.org/fop/download.html
Be sure to get the code from the maintenance branch:
 http://xml.apache.org/fop/dev/index.html#lines
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fix for page number alignment in TOC

2003-04-02 Thread Jeremias Maerki
Hmm, yes. See the download page I mentioned: 
http://xml.apache.org/fop/download.html
The tag is: fop-0_20_2-maintain

On 01.04.2003 23:29:15 Afshartous, Nick wrote:
  -Original Message-
  From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
  
  You're out of luck. The snapshots represent the development 
  code for the
  upcoming FOP 1.0. You need to download the code from CVS. 
 
 Thanks, I downloaded the latest code from CVS and got the same
 error.  Should I be referencing a tag/version ?


Jeremias Maerki


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



Re: page number alignment in TOC

2003-04-01 Thread Jeremias Maerki
You're out of luck. The snapshots represent the development code for the
upcoming FOP 1.0. You need to download the code from CVS. I've just
updated the information on the download page, but it'll take a while
until the changes will be online.

On 01.04.2003 21:36:52 Afshartous, Nick wrote:
 
  Afshartous, Nick wrote:
   I know that the issue of right-justifying 
   page numbers in a TOC is a documented 
   limitation
   
   http://xml.apache.org/fop/faq.html#page_number_align
   
   but I was wondering if anyone has managed to work
   around this.  In other words has anyone found
   a technique for making the page numbers
   look right-justified in a TOC ?  Thanks 
   for any info.
 
  From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
  This is fixed in CVS.
 
 I built a JAR using xml-fop_20030401173520.tar.gz
 but then got the exception below.  The only change
 was to add the call to Driver.initialize)).
 
 This error did not occur with fop-0.20.4.jar.   
 
 Please advise, thanks.
 
 Nick
 
 java.lang.NullPointerException
   at org.apache.fop.pdf.PDFDocument.outputHeader(PDFDocument.java:849)
   at
 org.apache.fop.render.pdf.PDFRenderer.startRenderer(PDFRenderer.java:297)
   at
 org.apache.fop.apps.LayoutHandler.startDocument(LayoutHandler.java:182)
   at
 org.apache.fop.fo.FOTreeBuilder.startDocument(FOTreeBuilder.java:182)
   at
 org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:459)
   at org.apache.fop.apps.Driver.render(Driver.java:617)
   at org.apache.fop.apps.Driver.run(Driver.java:664)
   at com.proactcorp.docgen.DocGen.fo2pdf(DocGen.java:98)
   at com.proactcorp.docgen.DocGen.main(DocGen.java:74)
 Exception in thread main 
 
 
  private static ByteArrayOutputStream fo2pdf(Document foDocument) {
 
 DocumentInputSource fopInputSource = new DocumentInputSource(
  foDocument);
 ByteArrayOutputStream out = new ByteArrayOutputStream();
 Driver driver = new Driver(fopInputSource, out);
 driver.initialize();
 driver.setRenderer(Driver.RENDER_PDF);
 
 try {

 driver.run();
 
 }
 catch (java.io.IOException e) {
 System.out.println(DocGen: IOException);
 }
 catch (org.apache.fop.apps.FOPException e) {
 System.out.println(DocGen: FOPException);
 }
 
 return out;
 
 }



Jeremias Maerki


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



fix for page number alignment in TOC

2003-04-01 Thread Afshartous, Nick
Title: fix for  page number alignment in TOC







 -Original Message-
 From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]

 You're out of luck. The snapshots represent the development 
 code for the
 upcoming FOP 1.0. You need to download the code from CVS. 


Thanks, I downloaded the latest code from CVS and got the same
error. Should I be referencing a tag/version ?


 Nick




 On 01.04.2003 21:36:52 Afshartous, Nick wrote:
  
   Afshartous, Nick wrote:
I know that the issue of right-justifying 
page numbers in a TOC is a documented 
limitation

http://xml.apache.org/fop/faq.html#page_number_align

but I was wondering if anyone has managed to work
around this. In other words has anyone found
a technique for making the page numbers
look right-justified in a TOC ? Thanks 
for any info.
  
   From: J.Pietschmann [mailto:[EMAIL PROTECTED]] 
   This is fixed in CVS.
  
  I built a JAR using xml-fop_20030401173520.tar.gz
  but then got the exception below. The only change
  was to add the call to Driver.initialize)).
  
  This error did not occur with fop-0.20.4.jar. 
  
  Please advise, thanks.
  
  Nick
  
  java.lang.NullPointerException
   at 
 org.apache.fop.pdf.PDFDocument.outputHeader(PDFDocument.java:849)
   at
  
 org.apache.fop.render.pdf.PDFRenderer.startRenderer(PDFRendere
 r.java:297)
   at
  
 org.apache.fop.apps.LayoutHandler.startDocument(LayoutHandler.
 java:182)
   at
  
 org.apache.fop.fo.FOTreeBuilder.startDocument(FOTreeBuilder.java:182)
   at
  org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:459)
   at org.apache.fop.apps.Driver.render(Driver.java:617)
   at org.apache.fop.apps.Driver.run(Driver.java:664)
   at com.proactcorp.docgen.DocGen.fo2pdf(DocGen.java:98)
   at com.proactcorp.docgen.DocGen.main(DocGen.java:74)
  Exception in thread main 
  
  
  private static ByteArrayOutputStream fo2pdf(Document foDocument) {
  
  DocumentInputSource fopInputSource = new 
 DocumentInputSource(
  
 foDocument);
  ByteArrayOutputStream out = new 
 ByteArrayOutputStream(); 
  Driver driver = new Driver(fopInputSource, out);
  driver.initialize();
  driver.setRenderer(Driver.RENDER_PDF);
  
  try {
  
  driver.run();
  
  }
  catch (java.io.IOException e) {
  System.out.println(DocGen: IOException);
  }
  catch (org.apache.fop.apps.FOPException e) {
  System.out.println(DocGen: FOPException);
  }
  
  return out;
  
  }
 
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 





Re: page number alignment in TOC

2003-03-30 Thread J.Pietschmann
Afshartous, Nick wrote:
 
I know that the issue of right-justifying 
page numbers in a TOC is a documented 
limitation

http://xml.apache.org/fop/faq.html#page_number_align
but I was wondering if anyone has managed to work
around this.  In other words has anyone found
a technique for making the page numbers
look right-justified in a TOC ?  Thanks 
for any info.
This is fixed in CVS.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


page number alignment in TOC

2003-03-28 Thread Afshartous, Nick
Title: page number alignment in TOC






I know that the issue of right-justifying 
page numbers in a TOC is a documented 
limitation


 http://xml.apache.org/fop/faq.html#page_number_align


but I was wondering if anyone has managed to work
around this. In other words has anyone found
a technique for making the page numbers
look right-justified in a TOC ? Thanks 
for any info.


 Nick





Text and picture alignment

2003-03-27 Thread Granchak, Tanya
Hello,
May be somebody knows how to solve it:
 
The following xsl fo statement
fo:block color=black border-top-style=none border-bottom-style=none
border-left-style=none border-right-style=none font-family=Times New
Roman font-size=12pt font-style=normal text-align=justify
line-height=normal space-before=0pt space-after=0pt start-indent=0pt
end-indent=0pt border-width=5px border-style=none
font-weight=normalFor example, a single fo:external-graphic
src=url(C:/Temp\img0.gif) width=auto height=auto content-width=auto
content-height=auto display-align=before/fo:external-graphic database
system can enforce the ACID rules when it holds all the data involved in a
transaction. In the case of SQL Server, there is an internal transaction
manager that provides commit and rollback behavior./fo:block
 
looks like:
 
texttext *** text ...text
* *
*picture   *
* *
***
 
I want the text bottom to be on one level with the picture bottom. How I
should change the xsl fo statement?
 
Thank you,
Tanya Granchak

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



Re: Text and picture alignment

2003-03-27 Thread J.Pietschmann
Granchak, Tanya wrote:
I want the text bottom to be on one level with the picture bottom. How I
should change the xsl fo statement?
The spec has area alignment properties to control this:
 http://www.w3.org/TR/xsl/slice7.html#area-alignment
You'll probably need alignment-adjust=bottom, but in your context
the behaviour you need should be the default anyway. Unfortunately,
this and most other alignment properties are not implemented
and are unlikely to be implemented in the code from the
maintenance branch. Unless the redesigned code from CVS HEAD is
usable for you, you are hosed.
J.Pietschmann

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


tab characters alignment

2003-03-12 Thread Claudio De Bernardi
Hi,
does anybody know how FOP works with tab characters?
I'm trying to generate a PDF file starting from a simple text which 
contains tab characters, and I want to keep them in the resulting PDF. I 
put the text into a block  tag with the attribute 
white-space-collapse=false ( the text to be printed hasn't a standard 
format, so I can't use tables )
It seems that FOP recognize tabs but it simply replaces them with a 
fixed number of white spaces  without any kind of consideration about 
horizontal alignment

Thanks in advance
Claudio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: tab characters alignment

2003-03-12 Thread Victor Mote
Claudio De Bernardi

 does anybody know how FOP works with tab characters?
 I'm trying to generate a PDF file starting from a simple text which
 contains tab characters, and I want to keep them in the resulting PDF. I
 put the text into a block  tag with the attribute
 white-space-collapse=false ( the text to be printed hasn't a standard
 format, so I can't use tables )
 It seems that FOP recognize tabs but it simply replaces them with a
 fixed number of white spaces  without any kind of consideration about
 horizontal alignment

I do not know the answer to your direct question. However, AFAIK, the
spirit, and probably the letter, of the XSL-FO standard is that tabular data
should be put into tables. The tab was invented for typewriters  similar
devices, and is inferior to real tables.

I may be wrong, but it seems that if you have tabs separating tabular data,
that you do indeed have a standard format that could use tables. Consider
digging a little deeper along that axis. HTH.

Victor Mote


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



Re: tab characters alignment

2003-03-12 Thread Claudio De Bernardi




Victor, thanks for your reply.
I agree with your opinion about tabs modernity, but it sound strange that
a modern tool like FOP isn't backward compatible with a so simple features,
consider that most editors support tabs in the rigth way and people still
use them
my aim is to have the most simple editor to create a PDF file based on an
HTML textarea, obviuosly users should be free to use the poor ways provided
by textareas to format a text which I think are only tabs (if the user use
copy and paste), white spaces and line breaks 
Now I think I will try with different solutions

Regards,
Claudio

Victor Mote wrote:

  Claudio De Bernardi

  
  
does anybody know how FOP works with tab characters?
I'm trying to generate a PDF file starting from a simple text which
contains tab characters, and I want to keep them in the resulting PDF. I
put the text into a block  tag with the attribute
white-space-collapse="false" ( the text to be printed hasn't a standard
format, so I can't use tables )
It seems that FOP recognize tabs but it simply replaces them with a
fixed number of "white spaces"  without any kind of consideration about
horizontal alignment

  
  
I do not know the answer to your direct question. However, AFAIK, the
spirit, and probably the letter, of the XSL-FO standard is that tabular data
should be put into tables. The tab was invented for typewriters  similar
devices, and is inferior to real tables.

I may be wrong, but it seems that if you have tabs separating tabular data,
that you do indeed have a standard format that could use tables. Consider
digging a little deeper along that axis. HTH.

Victor Mote


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

  






Re: tab characters alignment

2003-03-12 Thread Clay Leeds
Claudio,
Claudio De Bernardi wrote:
my aim is to have the most simple editor to create a PDF file based on 
an HTML textarea, obviuosly users should be free to use the poor ways 
provided by textareas to format a text which I think are only tabs (if 
the user use copy and paste), white spaces and line breaks
Now I think I will try with different solutions
As I recall, a textarea on a web page will not allow the input of a 
[tab]. In most web browers, pressing the [tab] key will move out of the 
textarea and on to the next field or form element. I guess one could 
paste a tab in (I'm not sure).

But in any case, it sounds like either pre-processing the form contents 
with a custom SAX parser or just using Javascript or server-side 
scripting to create some sort of XSL-FO table might be the way to go.

Good luck!
--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tab characters alignment

2003-03-12 Thread Rodolfo M. Raya
On Wed, 2003-03-12 at 14:06, Claudio De Bernardi wrote:
 Hi,
 does anybody know how FOP works with tab characters?

TAB characters are replaced with 8 white spaces. Effective width depends
on the font used. 

 I'm trying to generate a PDF file starting from a simple text which 
 contains tab characters, and I want to keep them in the resulting PDF. I 
 put the text into a block  tag with the attribute 
 white-space-collapse=false ( the text to be printed hasn't a standard 
 format, so I can't use tables )

If you want to indent your text use start-indent attribute of
fo:block. This is your only option if you can't use tables.

 It seems that FOP recognize tabs but it simply replaces them with a 
 fixed number of white spaces  without any kind of consideration about 
 horizontal alignment

You are right.

 Thanks in advance
 Claudio

Hope this helps,
Rodolfo

-- 
Rodolfo M. Raya [EMAIL PROTECTED]
Heartsome Holdings Pte. Ltd.



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



Re: tab characters alignment

2003-03-12 Thread J.Pietschmann
Claudio De Bernardi wrote:
I agree with your opinion  about tabs modernity, but it sound strange 
that a modern tool like FOP  isn't backward compatible with a so simple 
features, consider that most editors support tabs in the rigth way and 
people still use them
Backward compatibility or not, there is a XSLFO spec, which is in turn
based on the XML spec, which defines tabs as whitespace. Whitespace
treatment is detailed to some degree in
 http://www.w3.org/TR/xsl/slice7.html#white-space-treatment
Basically, the spec requires to treat tabs exactly like spaces.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Table cell alignment and images

2003-01-25 Thread Rakesh Patel
Hi,

I have a problem I have not been able to solve for quite a while to do with 
placement of images inside table cells.

I have two images, held within two table cells.

The code looks like this:

fo:table-column column-width=31.8mm/
fo:table-column column-width=46mm/!-- 46mm --
fo:table-body
fo:table-row
fo:table-cell background-color=blue
fo:block text-align=outside
fo:external-graphic
xsl:attribute 
name=srcxsl:value-of select=boat.jpg//xsl:attribute
/fo:external-graphic
/fo:block
/fo:table-cell
fo:table-cell background-color=black
fo:block text-align=start
fo:external-graphic
xsl:attribute 
name=srcxsl:value-of select=sky.gif//xsl:attribute
/fo:external-graphic
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table

The first image in the cell is flush against the right side of the cell. The 
second image should be flush against the left side of its cell (giving the 
impression of one continous graphic - because both images have a border built 
in to them). However, there is a 0.5px gap between the image and the left edge. 
I have tried all combinations of text-align and still no luck. Can anyone help?

Once this is sorted, I need to insert an additional cell between these two 
cells which contains some text but also has the border on the top and bottom, 
giving the impression of a boxed border overall with an image, some text and 
another image.

Originally, I had no border within the images themselves but there was still a 
gap between the image and the surrounding cell I couldn't remove, I was advised 
to make the border part of the image. This worked for the left hand image but 
not the right!

Thanks

Rakesh

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



Re: Table cell alignment and images

2003-01-25 Thread J.Pietschmann
Rakesh Patel wrote:
The first image in the cell is flush against the right side of the cell. The
second image should be flush against the left side of its cell (giving the
impression of one continous graphic - because both images have a border built
in to them). However, there is a 0.5px gap between the image and the left
edge.
Image placement is subject to round off, and there may be
still off-by-one errors. You can try to compensate by using
a negative start-indent.
J.Pietschmann

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


Re: vertical alignment

2003-01-23 Thread Stefan . Wachter
Thanks for the tip. The table solution worked. I should have looked at the
FAQ myself.

The only thing that is somewhat unaesthetic about the solution is that I
have to use fixed heights for the table rows. Is there also a solution for this?

Thanks again,
--Stefan

fo:table table-layout=fixed width=100%
  fo:table-column column-width=proportional-column-width(1)/
  fo:table-body
fo:table-row height=99mm
  fo:table-cell display-align=center
fo:block1/fo:block
  /fo:table-cell
/fo:table-row
fo:table-row height=99mm
  fo:table-cell display-align=center
fo:block2/fo:block
  /fo:table-cell
/fo:table-row
fo:table-row height=99mm
  fo:table-cell display-align=center
fo:block3/fo:block
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table


 [EMAIL PROTECTED] wrote:
 
  I want to have a start-region that contains static content. The static
  content consists of three blocks. The first block is to be displayed at
 the top
  the second in the center and the third at the bottom of the region. One
 of my
  many fruitless tries was:
  
  fo:static-content flow-name=xsl-region-start
fo:block absolute-position=absolute top=0mm1/fo:block
fo:block2/fo:block
fo:block absolute-position=absolute bottom=0mm3/fo:block
  /fo:static-content
  
 The absolute-position property is not implemented, you should have
 seen an error message. Use position=absolute, and supply all four
 of top, left, height and width.
 
   where the region-start is defined by region-start extent=1in
   display-align=center/.
 I don't think display-align works on regions. You can use
 display-align on table cells.
 See
   http://xml.apache.org/fop/faq.html#faq-N10489
 you can try a table with three rows.
 
 J.Pietschmann
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: vertical alignment

2003-01-23 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
The only thing that is somewhat unaesthetic about the solution is that I
have to use fixed heights for the table rows. Is there also a solution for this?
Try using  three absolutely positioned block containers
completely overlapping each other and containing a table
for the center and bottom aligned content:
   fo:block-container position=absolute
 top=0mm left=0mm width=120mm height=1in
 fo:block1/fo:block
   /fo:block-container
   fo:block-container position=absolute
 top=0mm left=0mm width=120mm height=1in
 fo:table table-layout=fixed width=100%
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-body
 fo:table-row height=1in
   fo:table-cell display-align=center
 fo:block2/fo:block
   /fo:table-cell
 /fo:table-row
   /fo:table-body
 /fo:table
   /fo:block-container
   fo:block-container position=absolute
 top=0mm left=0mm width=120mm height=1in
 fo:table table-layout=fixed width=100%
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-body
 fo:table-row height=1in
   fo:table-cell display-align=bottom
 fo:block3/fo:block
   /fo:table-cell
 /fo:table-row
   /fo:table-body
 /fo:table
   /fo:block-container
   ...
Untested, I can't really say whether absolutely positioned
block containers work in static content.
J.Pietschmann

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


vertical alignment

2003-01-22 Thread Stefan . Wachter
Hi all.

I have a problem that I couldn't solve using FOP:

I want to have a start-region that contains static content. The static
content consists of three blocks. The first block is to be displayed at the top
the second in the center and the third at the bottom of the region. One of my
many fruitless tries was:

fo:static-content flow-name=xsl-region-start
  fo:block absolute-position=absolute top=0mm1/fo:block
  fo:block2/fo:block
  fo:block absolute-position=absolute bottom=0mm3/fo:block
/fo:static-content

where the region-start is defined by region-start extent=1in
display-align=center/.

Can anyone help? Thanks,

--Stefan


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



Re: vertical alignment

2003-01-22 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
I want to have a start-region that contains static content. The static
content consists of three blocks. The first block is to be displayed at the top
the second in the center and the third at the bottom of the region. One of my
many fruitless tries was:
fo:static-content flow-name=xsl-region-start
  fo:block absolute-position=absolute top=0mm1/fo:block
  fo:block2/fo:block
  fo:block absolute-position=absolute bottom=0mm3/fo:block
/fo:static-content
The absolute-position property is not implemented, you should have
seen an error message. Use position=absolute, and supply all four
of top, left, height and width.
 where the region-start is defined by region-start extent=1in
 display-align=center/.
I don't think display-align works on regions. You can use
display-align on table cells.
See
 http://xml.apache.org/fop/faq.html#faq-N10489
you can try a table with three rows.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Alignment of table (overflow) on pages 1

2003-01-18 Thread Kevin Ross








Wow,



I found it. The attributes for the margins on each
simple-page-master did not match.



Sorry for the trouble.



-Kevin Ross



-Original Message-
From: Kevin Ross
[mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 18, 2003 5:26 PM
To: [EMAIL PROTECTED]
Subject: Alignment of table
(overflow) on pages  1



First, Im relatively new to
xsl:fo. 

Second, the FAQ is great, it solved
9 out of 10 of my problems.



Included are some sample files for
an invoice-like document. When the
line items exceed the space for page 1, the of course overflow to page  1,
using the appropriate simple-page-master master-name=rest. The problem lies in the alignment of the
table. On page one, the table is
aligned to the left, whereas on pages  1, the table is basically
centered. I have exhaustively tried
attributes, but to no avail. 



What am I missing here?



-Kevin Ross










Re: Cross Post RE: DOCBOOK-APPS: screenshot and itemizedlist,top alignment in single row table

2002-12-28 Thread Joerg Pietschmann
On Friday 27 December 2002 09:32, you wrote:
 The FOP Web Site does list some limitations with Tables, but nothing about
 formatting lists in table cells. Perhaps, somebody on the FOP-USER list has
 experienced this problem and can give us a solution or pointer.

The problem is that FOP does not handle spaces conditionally,
as a poster in the snipped part already mentioned. It's not specific
to lists or tables.
The only solution is to avoid generating space-before/after properties
at places where they are not wanted. Of course this works only for table
cells, at page sequence boundaries and around forced breaks. There
is *no* solution for page breaks. And of course this complicates style
sheets.
This will not be fixed in the maintenance branch. It's not yet adressed
in the redesign either.

J.Pietschmann

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



Cross Post RE: DOCBOOK-APPS: screenshot and itemizedlist,top alignment in single row table

2002-12-27 Thread Sean Wheller
 On Wed, Dec 25, 2002 at 06:32:44PM +1100, Sean Wheller wrote:
 
  I need to put a screenshot and itemizedlist into a table.
 
  I use a table with 1 row and two cols. The screenshot in the
 Left cell and the
  list in the Right cell, both in the same row. I find this works well to
  converse space (one page/screen full), and helps readers to
 match the list
  descriptions with the adjacent picture. In this case a picture
 of the file
  menu which is long.
 
  The problem is when I do FO output. The distance from the top
 table border is
  not the same for the picture and itemizedlist. The picture is
 flush with the
  top border and the itemized list in spaced down about 0.25in.

 Bob Stayton Replied:

 I suspect you are using FOP as your FO processor.
 The XEP processor lines up both at the tops of
 their respective table cells.

 The problem is that FOP doesn't know when to turn
 off 'space-before' properties.  There are situations
 where a space-before property on a block
 is not appropriate, such as at the top of a page
 or top of a table cell.  What you are seeing is the
 spacing for screen and listitem you would get when
 such blocks are laid out on a page to separate them
 from other blocks.  The screen spacing is 1em, the
 list start spacing is 1em, and the list item spacing
 is also 1em, so the listitem is 1em lower.
 But in a table cell, all such space-before should not
 be output, and so they should line up.

 If you still want a work-around for FOP,
 if you were to eliminate the space-before for the
 list, then they would both be 1em and
 equal so they line up.  The list spacing is
 specified in the 'list.block.spacing' attribute-set
 in fo/param.xsl. You could set that to zero in
 a customization layer, but that would apply to
 all lists in all contexts.

 I don't see an easy way
 to customize this just for table cells, short of
 copying the itemizedlist template from fo/lists.xsl
 to your customization layer, and changing the template
 to match=entry/itemizedlist.  Then
 you could customize the spacing it as needed.
 But you will have to be careful to watch for
 changes to the itemizedlist template during
 stylesheet upgrades to maintain compatibility.


Your assumption about FOP is correct, I have cross posted this to FOP-USER.
The FOP Web Site does list some limitations with Tables, but nothing about
formatting lists in table cells. Perhaps, somebody on the FOP-USER list has
experienced this problem and can give us a solution or pointer.

In the interim I will adjust 'list.block.spacing' to zero.

Thanks,

Sean Wheller
[EMAIL PROTECTED]
XWriter


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



fo:page-number-citation, right alignment bug in 20.5rc

2002-12-11 Thread Scott Moore



I just tested the latest RC 20.5 and the right 
alignment bug for fo:page-number-citation still exists. Based on past 
postings, I was under the impression this was going to be fixed.

What gives? Was it too hard to implement or 
just an oversight?

Thanks,
Scott


Re: fo:page-number-citation, right alignment bug in 20.5rc

2002-12-11 Thread J.Pietschmann
Scott Moore wrote:
I just tested the latest RC 20.5 and the right alignment bug for 
fo:page-number-citation still exists.  Based on past postings, I was 
under the impression this was going to be fixed.
 
What gives?  Was it too hard to implement or just an oversight?
Sorry, hadn't had time to fix this. While the fix is not all
that hard in itself, it may have widespread consequences and
therefore needs some extended testing.
J.Pietschmann

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


Table Alignment

2002-12-04 Thread sujata shetty
Hi Evrybody,
   I have a PDF table created.

Now the table is placed in one corner of the page.
I want my table to be aligned at the center.
Is there any table property where I can set 
align = center?

Please help me out in this.

Thanks and Regards,
Sujata

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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



Re: Table Alignment

2002-12-04 Thread Oleg Tkachenko
sujata shetty wrote:
Now the table is placed in one corner of the page.
I want my table to be aligned at the center.
Is there any table property where I can set 
align = center?
afaik the only way to center table using FOP at the moment is blind table 
usage, see http://marc.theaimsgroup.com/?l=fop-userm=102952965830886w=2.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Table Alignment

2002-12-04 Thread Francis, Ronald

I have the smae problem , don't think fop supports it yet.
You could try putting your table inside another table with three equal width
cells.
Cheers,
Ronald

-Original Message-
From: sujata shetty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 04, 2002 2:49 AM
To: [EMAIL PROTECTED]
Subject: Table Alignment


Hi Evrybody,
   I have a PDF table created.

Now the table is placed in one corner of the page.
I want my table to be aligned at the center.
Is there any table property where I can set 
align = center?

Please help me out in this.

Thanks and Regards,
Sujata

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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



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



Re: Alignment

2002-12-03 Thread Oleg Tkachenko
Evraire, Jonathan wrote:
  I have an unusual requirement for printing.  We print in both English and
French, side-by-side on the same page.  Each section (ie: block) in one
language must line up with the corresponding section in the other language
(if one language is longer than it's counterpart it's padded with
whitespace).  This is on the left-hand page... on the right-hand page, I
also have blocks that need to line up with (but not change) the alignment
points on the left-hand page.
A thread [1] may be helpful a little bit probably.
Anyway I'd ask on [EMAIL PROTECTED] or [EMAIL PROTECTED] mail lists as it's pure 
xsl-fo question actually.

[1] http://marc.theaimsgroup.com/?l=fop-userm=102675982024303w=2
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Alignment

2002-12-03 Thread J.Pietschmann
Evraire, Jonathan wrote:
We print in both English and
French, side-by-side on the same page
  I've gotten the left-hand page hacked by using tables, but I don't know
how to get the right-hand page aligned with the left.  Any suggestions?
There is no possiblity to have this kind of two flows in the
way you described in XSLFO.
A possible work around: Define a page master double as wide as
one page, and use a table for what would result in both the
right hand and left hand page together. If you use ISO paper,
like A4 for the original, print the result on A3 and cut in the
middle as appropriate. You can also try iText
 http://www.lowagie.com/itext
for postprocessing, for example to get proper page numbers and
perhaps even for separating the big page in the two pages you
want to have. If the result is for printing only, rendering to
an image format might help too, perhaps even doing a second pass
with rendering the images again to get proper headers and footers.
J.Pietschmann

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


Alignment

2002-12-02 Thread Evraire, Jonathan
Hi,
  I have an unusual requirement for printing.  We print in both English and
French, side-by-side on the same page.  Each section (ie: block) in one
language must line up with the corresponding section in the other language
(if one language is longer than it's counterpart it's padded with
whitespace).  This is on the left-hand page... on the right-hand page, I
also have blocks that need to line up with (but not change) the alignment
points on the left-hand page.

  I've gotten the left-hand page hacked by using tables, but I don't know
how to get the right-hand page aligned with the left.  Any suggestions?

  Ideally, I would like to have some kind of general alignment tag, like
efo:valign which has an id attribute, which would be used by the renderer to
vertically align every efo:valign with the same id on the same line, even
accross multiple pages.

  I realize my description of this is a little vague because my goal is a
little complex.  Let me know if more information would help.  Thanks!

  Jonathan Evraire
  jonevrai at justice.gc.ca

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



Alignment question

2002-11-18 Thread Ries Spruit
Title: Message



Hello,Im a trying to achieve 
something like 
this:--|This 
is price text in a normal 
paragraph$ 
250,00|| 
|| 
|
or
--|This 
is a very long price text which will force theprice to the next line 
but ||it should still be on the 
right.$ 
250,00|From this element 
structure:priceText descriptionThis is a price 
text in a normal paragraph/description price$ 
250,00/price/priceText

The trick is that I want to allow the 
description to be as long as necessary. The price should be appended to the 
description but aligned to the right of the block that the priceText element is 
used in. 

Does anyone know of anyway of doing this without 
tables?

Kind regards,

Ries Spruit



Re: Alignment question

2002-11-18 Thread Keiron Liddle
Hi,

This could be done with fo:leader with space.
You can use the default lengths which will exapnd to fill the space.

I'm not sure if this is implemented properly yet.


On Mon, 2002-11-18 at 14:05, Ries Spruit wrote:
 Hello,
 
 Im a trying to achieve something like this:
 
 
 --
 |This is price text in a normal paragraph
 $ 250,00|
 |
 |
 |
 | 
 
 or 
 
 
 --
 |This is a very long price text which will force the price to the next
 line but  |
 |it should still be on the right.
 $ 250,00|
 
 From this element structure:
 
 priceText
   descriptionThis is a price text in a normal paragraph/description
   price$ 250,00/price
 /priceText
 
  
 The trick is that I want to allow the description to be as long as
 necessary. The price should be appended to the description but aligned
 to the right of the block that the priceText element is used in. 
  
 Does anyone know of anyway of doing this without tables?
  
 Kind regards,
  
 Ries Spruit
  




RE: Alignment question

2002-11-18 Thread Ries Spruit
Thanks!

Ofcourse this is the function I need. I can't really get it to behave right 
though.

If I use this:

fo:blockA Pricefo:leader leader-pattern=dots / 250/fo:block

the result is this:

|A   |
|Price..$|
| 250|

The block is a child element of another block and then fo:flow. No alignment 
properties are set on the flow region or the block regions. Setting alignment 
to left or start does not make any difference.

Is there another special setting required or might it just be the 
implementation? I can imagine the algorithm for the leader length just 
calculating its length based on the last word on the left and the first word on 
the right instead of the endposition on the left and length of the text on the 
right.

Ries Spruit




-Original Message-
From: Keiron Liddle [mailto:[EMAIL PROTECTED] 
Sent: maandag 18 november 2002 14:20
To: [EMAIL PROTECTED]
Subject: Re: Alignment question


Hi,

This could be done with fo:leader with space.
You can use the default lengths which will exapnd to fill the space.

I'm not sure if this is implemented properly yet.


On Mon, 2002-11-18 at 14:05, Ries Spruit wrote:
 Hello,
 
 Im a trying to achieve something like this:
 
 --
 --
 --
 |This is price text in a normal paragraph
 $ 250,00|
 |
 |
 |
 | 
 
 or
 
 --
 --
 --
 |This is a very long price text which will force the price to the next
 line but  |
 |it should still be on the right.
 $ 250,00|
 
 From this element structure:
 
 priceText
   descriptionThis is a price text in a normal paragraph/description
   price$ 250,00/price
 /priceText
 
  
 The trick is that I want to allow the description to be as long as 
 necessary. The price should be appended to the description but aligned 
 to the right of the block that the priceText element is used in.
  
 Does anyone know of anyway of doing this without tables?
  
 Kind regards,
  
 Ries Spruit
  



Re: Alignment question

2002-11-18 Thread Oleg Tkachenko
Ries Spruit wrote:
Ofcourse this is the function I need. I can't really get it to behave right 
though.
If I use this:
fo:blockA Pricefo:leader leader-pattern=dots / 250/fo:block
the result is this:
|A   |
|Price..$|
| 250|
There is a bug in line breaking implementation preventing using leader 
in such a situation, see
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7490
and http://marc.theaimsgroup.com/?l=fop-devm=101870987823875w=2.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: Table alignment

2002-06-06 Thread J.Pietschmann
Ismaeil, Sameh Z wrote:
I want to align a table, whose width is smaller than the body width, to be
in the center of the page body
I think I read a solution before on this list, suggesting to put the table
inside the cell of another one-cell table, but I don't know which attribute
to use and on which element.
Use display-align=center
BTW I'm stuck to version 0.17.0 of FOP
Consider upgrading. There has been quite a few bugs
in table layout corrected.
J.Pietschmann



Double space block vertical alignment

2002-02-19 Thread Mickey, John
Hello,

I am trying to simulate a double spaced document using the line-height
attribute but I find that the lines of text are always centered vertically
in the block, is there a way to have the first line start flush against the
top of the block area ( all 12pts of extra space comes after the first line
instead of having 6pts before and 6pts after each line.)?

An example of what I have so far:

?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   fo:layout-master-set
  fo:simple-page-master master-name=draft page-width=8.5in
page-height=11in margin-left=0.9in margin-right=0.7in
 fo:region-body margin-top=0.5in margin-bottom=0.33in/
  /fo:simple-page-master
   /fo:layout-master-set
   fo:page-sequence master-reference=draft
  fo:flow flow-name=xsl-region-body
 fo:block font-family=Courier font-size=12pt line-height=24pt
hyphenate=false text-align=justify text-indent=0.3in
background-color=grey
Blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah.
 /fo:block
  /fo:flow
   /fo:page-sequence
/fo:root

Thank you,
John Mickey


Re: Double space block vertical alignment

2002-02-19 Thread Josh Campbell
Mickey, John wrote:
I am trying to simulate a double spaced document using the line-height
attribute but I find that the lines of text are always centered vertically
in the block, is there a way to have the first line start flush against the
top of the block area ( all 12pts of extra space comes after the first line
instead of having 6pts before and 6pts after each line.)?
This has been bugging me as well so, sorry, no solution. I've been 
trying to find a way to control the height of a block (line-height seems 
to be the only thing that works) and have the text top aligned.

Has anyone pulled this off yet?
Thanks
Josh
ZYPE - Graphical Interface Design
Phone: 03 3862094
Mobile: 021 400 472
Web: www.zype.co.nz



Vertical alignment question

2002-01-11 Thread Jonathan O'Keeffe
Hello -

I have a question about vertical alignment within a block.  I have a
fixed-height block with a variable number of short lines, and I want the
first (n - 1) lines grouped together at the top of the block, and line (n)
aligned to the bottom of the block - something like this:

--- Top of block
Line 1
Line 2
Line 3


Line 4
--- Bottom of block

This is produced with FO something like this

fo:block height=30mm id=OUTER
fo:block id=A
fo:blockLine 1/fo:block
fo:blockLine 2/fo:block
fo:blockLine 3/fo:block
/fo:block
fo:block id=B
fo:blockLine 4/fo:block
/fo:block
/fo:block

(the id attributes are only for illustration here).  Basically I want block
A to be aligned to the top of block OUTER, and block B to be aligned to the
bottom of block OUTER.  This is subject to the constraint that block A (and
also probably eventually block B) could have variable numbers of rows in
them - otherwise I would just use fixed-height rows in a table, or
something like that.

Thanks in advance for any assistance.

- Jonathan




alignment of leader/rule ?

2001-09-21 Thread Sharan, Dharmendra
Hi,

   I am using Fop-0.20.1 and have been trying to have a fo:leader to be
aligned in the middle/center,
   however it defaults to the baseline/bottom.

   ie. it is currently like the following :-


THIS IS A TITLE LINE
_
here are the details on the tile

-


   However I want it to be as follows :-


THIS IS A TITLE LINE
  [this line should be a solid
line as shown in above, but vertically aligned in the center/middle]
here are the details on the tile

-

   I have looked at 'alignment-adjust' and 'alignment-baseline' however I
get the warning that it is not implemented yet!.

   Is there a different approach to the same ? or anything I am missing
something here ? pls. help.

   Thanks (in anticipation!),

   Dharmendra