Re: Forcing Whitespace

2005-11-30 Thread Simon Burton
Putting a space between xsl:text tags does add a single char of whitespace - 
do you mean you want several chars of whitespace between them?

You can add white-space-collapse=false to your block tags, but not sure if 
this will do what you want, if you want more white space you may need to add 
some non breaking space references (nbsp;) but they have to be outside of 
xsl:text tags.

- Start Original Message -
From: Ail Sahin [EMAIL PROTECTED]
To: fop-users@xmlgraphics.apache.org
Subject: Forcing Whitespace

 Hi there,
 
 I have following block
 
 fo:block break-before=page font-size=8pt  font-weight=normal 
 space-before=3cm
 xsl:value-of select=sender/title/xsl:text 
 /xsl:text
 xsl:value-of select=sender/name1/xsl:text 
 /xsl:text
 xsl:value-of select=sender/name2/xsl:text 
 /xsl:text
 xsl:value-of select=sender/name3/xsl:text 
 /xsl:text
 xsl:value-of select=sender/postbox/xsl:text 
 /xsl:text
 xsl:value-of select=sender/street/xsl:text 
 /xsl:text
 xsl:value-of select=sender/state/xsl:text 
 /xsl:text
 xsl:value-of select=sender/country/xsl:text 
 /xsl:text
 xsl:value-of select=sender/postalcode/xsl:text 
 /xsl:text
 xsl:value-of 
 select=sender/city/fo:block/xsl:text /xsl:text
 fo:leader leader-pattern=rule /
 /fo:block
 
 I'd like to have some whitespaces between each xsl:value-of
 
 How to manage this?
 
 Greets
 Ali
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

- End Original Message -

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



Re: Invalid table layout: cant fill gap at row 0, column 2

2005-11-25 Thread Simon Burton
Your defining a table with three columns and your first row has 2 columns 
(cells) and the second has 1. = invalid table layout.

- Start Original Message -
From: [EMAIL PROTECTED]
To: fop-users@xmlgraphics.apache.org
Subject: Invalid table layout: cant fill gap at row 0, column 2

 I am getting an exception when trying to render pdf from my .fo
 The error I am getting is:
 
 Invalid table layout: cant fill gap at row 0, column 2
 
 
 it seems to point to this table:
 
   fo:table table-layout=fixed width=100%
 fo:table-column
 column-width=proportional-column-width(1)/
 fo:table-column
 column-width=proportional-column-width(1)/
 fo:table-column
 column-width=proportional-column-width(1)/
 fo:table-body
   fo:table-row
 fo:table-cell
   fo:block text-align=leftMy
 company/fo:block
 /fo:table-cell
 fo:table-cell
   fo:block text-align=centerMy
 report(10/1/04 3:32:44 PM)/fo:block
 /fo:table-cell
   /fo:table-row
   fo:table-row
 fo:table-cell
   fo:block text-align=left
   Date : 10/01/2004/fo:block
 /fo:table-cell
   /fo:table-row
 /fo:table-body
   /fo:table
 
 Any ideas?
 
 Tom Maciejewski
 Société Générale
 Information Technology
 1221 Avenue of the Americas
 New York, NY 10020
 Tel. (212) 278-7103
 Cell. (917) 690-9541
 
 *
 This message and any attachments (the message) are confidential and
 intended solely for the addressees.
 Any unauthorised use or dissemination is prohibited. 
 E-mails are susceptible to alteration.   
 Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates 
 shall be liable for the message if altered, changed or falsified. 
 
 *
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

- End Original Message -

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



Re: FOP producing BLANK PDFs on 1 of 4 servers

2005-11-23 Thread Simon Burton
We are using J2SE 1.4.1_04, Tomcat 3.3.1 and mod_jk (not sure what version)

I have as of yet been unable to download on the command line using wget or lynx 
as our system requires username/password logon/authentication and does html 
redirects so have not yet found a way to actually download the PDF using these 
methods (just get the redirect page downloaded).

If I download and save the PDF's from acrobat the correct one is 45kb and the 
incorrect one is 78kb, however I did spot a small clue which is Acrobat 
displays a dialog for a split second when the blank one is loading which is 
entitled Rebuild with the text This file is damaged but is being repaired. 
(had to record the screen as an AVI and play back in slo-mo to read it!)

Thanks for the help so far, I will write some java to save the 
correct/incorrect PDF's in their raw form as served up (rather than after 
saving from acrobat which is what I have now) - maybe this will give me some 
clues.

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



Re: fo:external-graphic limitation?

2005-11-23 Thread Simon Burton
I use something like this successfully:

fo:external-graphic width=40mm content-width=40mm scaling=uniform
  xsl:attribute name=srcxsl:value-of select=$photo//xsl:attribute
/fo:external-graphic

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



FOP producing BLANK PDFs on 1 of 4 servers

2005-11-22 Thread Simon Burton
We are using the latest fop version (0.20.5) and have a working solution 
(apache/cocoon/fop using xsl stylesheet and xml to create a PDF served up 
directly in the browser) on 3 of our servers but when running against the 4th 
server the PDF is always blank.
A PDF is served in the browser via acrobat and it has the expected number of 
pages but all the pages are completely blank.

Server: Working ones: Suse 9 / Problem one: RedHat 9 (Server Kernels all 2.4.26)
FOP: 0.20.5 + Cocoon
Client: IE 6.0.2900 on Windows XP Pro SP2 AND Firefox 1.5 on Suse Linux 9.3
Adobe Acrobat: 7.0.2 (Windows) / 7.0.1 (Linux)

Obviously the main difference is that the problem server is using RedHat, but 
so far we have been unable to figure out why this is happening.

We have tried the following:
- Copying all our jars from working server to problem server (just in case 
there were differences)
- Manually running fop on the command line using the same xsl stylesheet and 
xml output as server - this generates the PDF correctly.
- Turning on fop debug - no revealing info
- Tried googling, searching the mail archives and bugzilla - no luck yet


Is there anything we can do to trace the cause of this problem - addtional 
debug on fop/cocoon or whatever?
Thanks.

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