AW: headers for tables and chapters spanning on two or more pages

2002-04-04 Thread Skladov, Victor
Argyn,

As for 1):
If you want anything to appear on EVERY page automatically, you must put
in fo:table-header.
Example:
fo:table
fo:table-header
/fo:table-header
fo:table-body
/fo:table-body
/fo:table

All that stands in fo:table-header will appear on every page.

Best wishes,
Viktor

-Ursprüngliche Nachricht-
Von: Argyn Kuketayev [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 4. April 2002 16:35
An: [EMAIL PROTECTED] Apache. Org (E-mail)
Betreff: headers for tables and chapters spanning on two or more pages


1. suppose I have a table. If this table continues on the next page, I
want
its column names be in the header of the second page. What's the best
way to
do it?

2. general issue: suppose I'm printing a report. It's content is an XML
file, where row element contains rows, and every row has children,
such as
columns or nested rowsets.
I put every row in a fo:block. Inside the block I may have blocks for
row
content, tables for nested rowsets, etc.

That works fine, but I've a requirement: if the row takes more than one
page, then I've to show it's title in the page header.

a) What's the best approach to achieve it?
b) is it better approach to put the whole report into one table element?


thanks,
Argyn


AW: Table at end of page.

2002-03-07 Thread Skladov, Victor
You can use the property break-before=page. Then your table will
always appear on a new page.
But if your table is longer than a page height, it will be continued on
a new page automatically.
Try to reduce the properties such as font-size, row-height, padding to
place your table on one page.

Viktor

-Ursprungliche Nachricht-
Von: Olivier Rossel [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 7. Marz 2002 14:07
An: [EMAIL PROTECTED]
Betreff: Table at end of page.


I have a table that is displayed at the end of a page.
The table is a bit tall, so it is separated into two parts: one
at the end of the current page, and the other at the beginning of the 
next page.

Is there a way to prevent FOP from cutting a table into pieces?
I tried to include the table into a fo:block but it did not help.

Any help is welcome.


AW: FOP on command line, basic example

2002-03-07 Thread Skladov, Victor
page-height=28mm? Have never seen before ...
It seems like you'd like to use A4Landscape format (width=297mm). Then
the page-height is 210mm.Try to use cm instead of mm.

-Ursprungliche Nachricht-
Von: Olivier Rossel [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 6. Marz 2002 16:55
An: [EMAIL PROTECTED]
Betreff: FOP on command line, basic example


I try to transform this XML file

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

  fo:layout-master-set
   fo:simple-page-master master-name=page
page-width=297mm
page-height=28mm
margin-left=1cm
margin-right=1cm
margin-top=1cm
margin-bottom=1cm
 fo:region-before extent=1cm/
 fo:region-body margin-top=1cm margin-bottom=1.5cm/
 fo:region-after extent=0.5cm/
   /fo:simple-page-master
  /fo:layout-master-set

  fo:page-sequence master-reference=page
fo:flow flow-name=xsl-region-body
   fo:blockFoo/fo:block/fo:flow
  /fo:page-sequence
 /fo:root

into a PDF.
I use this command line:
java -cp /opt/COCOON/WEB-INF/lib/batik-libs.jar:
/opt/COCOON/WEB-INF/lib/xerces-1.4.4.jar:
/opt/COCOON/WEB-INF/lib/avalon-framework-4.0.jar:
/opt/COCOON/WEB-INF/lib/logkit-1.0.jar:
/opt/COCOON/WEB-INF/lib/fop.jar org.apache.fop.apps.Fop
esqlsample.fo
file.pdf

It generates a HUGE PDF and never ends...

Did i miss something.


AW: FOP0.20.3

2002-02-22 Thread Skladov, Victor
Hi Meena!
 
What batch do you mean? When you execute fop.bat, make sure you're doing
it in main fop directory: fop-0.20.3, or you must adapt the batch to
your directory. Example:
 
In batch:
 
java -cp build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar etc.
 
So that you can execute this batch from any directory, you must change
it as following:
java -cp
C:\Programme\fop-0.20.3\build\fop.jar;C:\Programme\fop-0.20.3lib\batik.j
ar;C:\Programme\fop-0.20.3lib\xalan-2.0.0.jar etc.
 
Don't know whether I have undertood your problem but I hope
 
Regards,
Viktor

-Ursprüngliche Nachricht-
Von: Meena [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 22. Februar 2002 10:58
An: [EMAIL PROTECTED]
Betreff: FOP0.20.3


Hi,
I tried using fop0.20.3. But while using the batch file, i'm getting the
following error. What could be the reason?
 
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/fop/apps/Fop
 
regds
Meena
 



AW: question regarding FOP/Cocoon/Tomcat

2002-02-21 Thread Skladov, Victor
Hi David!

There is a file called sitemap.xmap, that stands in
jakarta-tomcat/webapps/cocoon directory.
In this file all the instructins are being written.

Best wishes,
Viktor

-Ursprüngliche Nachricht-
Von: Xie, David (IPCG-NJ) [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 21. Februar 2002 16:59
An: cocoon-users; [EMAIL PROTECTED]
Betreff: question regarding FOP/Cocoon/Tomcat


Hi there,

I have a question regarding running FOP within Cocoon.  I have setup
Cocoon 2.0.1 within Jakarta Tomcat 4.0.1.  The sample pages (hello.pdf)
came out fine, but i don't understand how cocoon was able
to call FOP and grab the xml and xsl files.  Would anybody please
explain to me how can I point cocoon to xml and xsl and generate pdf?
or at least point me to the right document.  

Thank you in advance.

David


AW: fo:table-and-caption doesn't work!

2002-02-20 Thread Skladov, Victor
Thanks,Magnus!

Viktor

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Magnus
Sjoberg
Gesendet: Mittwoch, 20. Februar 2002 12:41
An: [EMAIL PROTECTED]
Betreff: Re: fo:table-and-caption doesn't work!


According to this:
http://xml.apache.org/fop/implemented.html

the fo:table-and-caption is not yet implemented (at least
for FOP). Maybe AntennaHouse or RenderX implement it...

///Magnus

Skladov, Victor wrote:
 
 Hi to all!
 
 I can't get to run any example of fo:table-and-caption. Even the
 example from the link:
 

http://www.w3.org/TR/xsl/slice6.html#section-N15442-Formatting-Objects-f
 or-Tables
 
 doesn't work!
 Does anybody know whether there are special tricks to be taken into
 account?
 I'd be very grateful if anybody could  mail me a working sample of
 fo.table-and-caption.
 
 Thanks in advance,
 Viktor


FO:TABLE - break-before property

2002-02-07 Thread Skladov, Victor
Hi to all!

I'd like to pass this fo:table property - break-before dynamically
from my xsp-document with stylesheet to pdf - it doesn't work! All other
properties do, but this doesn't!

XSP:

TABLE
xsp:attribute name=break

xsp:textpage/xsp:text
/xsp:attribute
xsp:attribute name=color
xsp:textred/xsp:text
/xsp:attribute

etc.

XSL:

xsl:template match=TABLE
fo:table
xsl:attribute name=break-before
xsl:value-of select=@break /
/xsl:attribute
xsl:attribute name=background-color
xsl:value-of select=@color /
/xsl:attribute

xsl:apply-templates/
/fo:table
/xsl:template

background-color works , but break-before not!
Can anybody explain what's wrong with that?

Thanks for help

Regards,
Viktor



FO: Avoid Linefeed Between 2 fo:blocks

2002-02-07 Thread Skladov, Victor
Hi to all!

How can I avoid the linefeed between 2 fo.block objects?
Example:

fo:blockMY/fo:block
fo:blockfop/fo:block

gives me the following output:

MY
fop

but I want:
MY fop

Are there any properties that could help to avoid this linefeed?

Thanx!!!
Viktor


AW: Avoid Linefeed Between 2 fo:blocks

2002-02-07 Thread Skladov, Victor
Thanks Aleksei!

I've got it!

Regards,
Viktor

-Ursprüngliche Nachricht-
Von: Aleksei Vassiljev [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 7. Februar 2002 15:15
An: [EMAIL PROTECTED]
Betreff: Re: Avoid Linefeed Between 2 fo:blocks


Hi
You may use fo:inline instead
For example:

fo:block
fo:inlineMY/fo:inline
fo:inlinefop/fo:inline
/fo:block

Aleksei Vassiljev
Software Developer
Hireright Inc.


- Original Message - 
From: Skladov, Victor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 16:06 
Subject: FO: Avoid Linefeed Between 2 fo:blocks


Hi to all!

How can I avoid the linefeed between 2 fo.block objects?
Example:

fo:blockMY/fo:block
fo:blockfop/fo:block

gives me the following output:

MY
fop

but I want:
MY fop

Are there any properties that could help to avoid this linefeed?

Thanx!!!
Viktor


AW: AW: FO: German Word Separation?

2002-01-21 Thread Skladov, Victor
Hi Marc!

Thanx, I've found them.
They stand in WEB-INF/lib/fop-0_20_1-dev.jar.
Thanks for your help!!!

Regards,
Viktor

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. Januar 2002 16:52
An: [EMAIL PROTECTED]
Betreff: Re: AW: FO: German Word Separation?


Hi Victor,

In Cocoon, these files are probably located as binaries in the fop.jar
file
in the lib directory. If you really want to see the code then you should
probably download the FOP-source from the FOP-site.

Greetings,
Marc


Skladov, Victor wrote:

 Hello, Marc!

 Thanks a lot! It works
 But I haven't found the files you wrote about. I use FO with Cocoon2
and
 I haven't found any language files in Cocoon folder. But it works!
Where
 could they be?

 Regards,
 Viktor

 -Ursprungliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 18. Januar 2002 12:36
 An: [EMAIL PROTECTED]
 Betreff: Re: FO: German Word Separation?

 Hello Victor,

 You can set the language for hyphenation, for example, in an fo:block
 like
 this:

 fo:block text-align=left
   language=de_DR
   hyphenate=true
   hyphenation-push-character-count=2
   hyphenation-remain-character-count=2

 If you look in your FOP directory under hyph/ you see the various
 hyphenation files. de_DR.xml is the new orthography, de.xml is the old
 orthography.
 HTH,

 Marc

 Skladov, Victor wrote:

  Hello to all!
 
  Can anybody tell me, whether there are country - specific algorithms
 for
  word separation in FO?
  I live in Germany and my long column captions (in German) are being
  wrong separated.
  Any ideas?
 
  Thanks in advance!
 
  Viktor