strange behaviour: Fop 0.92b, Websphere 6.0.2.0, PARENT_LAST deployment

2006-08-09 Thread Fabien K
Hello,
we use Fop 0.92b in order to build documents on the fly under a Websphere
Application Server 6.0.2.0

We I deploy my application in PARENT_FIRST classpath mode, everything's ok.
But if I only change deployement rules of the app to PARENT_LAST classpath
mode,
I catch exceptions ( you can see them at the end of the mail ).


here are the only jar used in the application  ( it's a demo Webapp.. )
avalon-framework-4.2.0.jar
batik-all-1.6.jar
commons-beanutils.jar
commons-collections.jar
commons-io-1.1.jar
commons-lang.jar
fop.jar
serializer-2.7.0.jar
xmlgraphics-commons-1.0.jar



Any idea?

Thanks in advance.

Exception catched:
---
[09/08/06 09:23:37:075 CEST] 003b FOTreeBuilder W
org.apache.fop.fo.FOTreeBuilder$MainFOHandler endElement Mismatch:
page-sequence (http://www.w3.org/1999/XSL/Format) vs. root
(http://www.w3.org/1999/XSL/Format)
[09/08/06 09:23:37:169 CEST] 003b FOTreeBuilder E
org.apache.fop.fo.FOTreeBuilder fatalError
javax.xml.transform.TransformerException:
java.lang.IllegalArgumentException: The number of this PDFNumber must not
be empty

 some lines after ( since exception in encapsulated .. )

Caused by: java.lang.IllegalArgumentException: The number of this
PDFNumber must not be empty
at org.apache.fop.pdf.PDFNumber.toPDFString(PDFNumber.java:109)
at org.apache.fop.pdf.PDFObject.toPDF(PDFObject.java:163)
at org.apache.fop.pdf.PDFObject.output(PDFObject.java:152)
at org.apache.fop.pdf.PDFDocument.output(PDFDocument.java:850)
at 
org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:657)
at 
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:119)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:703)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:154)
at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:320)
at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:147)
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:357)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:193)
at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:301)


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



Re: RE: Commercial Documents

2006-08-09 Thread andyrob_24_7
Would you be able to outline how you achieve crops and bleeds.

This is something I thought was not possible in FOP, any help with this would 
be greatly appreciated. Sample xml-fo would be ideal.

thanks in advance

andy r

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/message/fop-users@xmlgraphics.apache.org/4603489.html

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



Re: Commercial Documents

2006-08-09 Thread andyrob_24_7
Also, do you need to pay for a licence to use the FOP engine. Or is that just 
if you want to embed the code?

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/message/fop-users@xmlgraphics.apache.org/4598678.html

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



Margins

2006-08-09 Thread Andre Groeneveld








Hi All,



Can someone please help me, I have a table with one column that
stretches the width of the page, and inside the table I have paragraphs of
text, the reason why I do this is to keep the paragraph together. When the end
of the line is reached, the overflows onto the next line, is there a way that I
can set the margin between the two lines of text in the cell of the table?



Thanks in advance.




Confidentiality Caution and Disclaimer
This message and/or any attachment thereto ("the message")contains 
privileged and confidential information intendedonly for the recipient. If you are not the intended recipient of 
this message,please erase it permanently once you have notified 
thesender, per return e-mail, that you have received themessage in 
error.Unless the sender is duly authorised by either the 
TelesureGroup, or any of its subsidiary or affiliated companies or I.S Services("the Group") to send 
this message and unless the contentof this message is also duly authorised 
by the Group, anyviews expressed in this message are those of the 
individualsender and the Group will not accept liability therefore,nor 
for any consequential damage arising there from.Any recipient of an 
unacceptable communication, a chainletter or offensive material of any 
nature is requestedto be reported to [EMAIL PROTECTED].





Crop Marks and Bleeds

2006-08-09 Thread andyrob_24_7
I posted this on the back of another thread, then realised it could probably do 
with its own.

Would you be able to outline how you achieve crops and bleeds.  
 
This is something I thought was not possible in FOP, any help with this would 
be greatly appreciated. Sample xml-fo would be ideal.  
 
thanks in advance  
 
andy r  

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/messages/fop-users@xmlgraphics.apache.org/topic.html

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



RE: Margins

2006-08-09 Thread Andre Groeneveld
Yes FOP0.20.5. The space between the lines, I want the lines of text
closer to each other.

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: 09 August 2006 12:44 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Margins

Andre Groeneveld wrote:
 Hi All,
 
  
 
 Can someone please help me, I have a table with one column that 
 stretches the width of the page, and inside the table I have
paragraphs 
 of text, the reason why I do this is to keep the paragraph together. 

Can I assume then that you're still using FOP 0.20.5? As this workaround

isnt necessary in 0.92beta, keep-* properties work on regular fo:blocks 
now :)

 When the end of the line is reached, the overflows onto the next line,

 is there a way that I can set the margin between the two lines of text

 in the cell of the table?

Not sure what you mean by margins here? Are you trying to achieve an 
indent on the second line only or do you mean the space between the
lines?

Chris




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


Confidentiality Caution and Disclaimer

This message and/or any attachment thereto (the message)
contains privileged and confidential information intended
only for the recipient named above. 
If you are not the intended recipient of this message,
please erase it permanently once you have notified the
sender, per return e-mail, that you have received the
message in error.
Unless the sender is duly authorised by either the Telesure
Group, or any of its subsidiary companies or I.S Services
(the Group) to send this message and unless the content
of this message is also duly authorised by the Group, any
views expressed in this message are those of the individual
sender and the Group will not accept liability therefore,
nor for any consequential damage arising therefrom.
Any recipient of an unacceptable communication, a chain
letter or offensive material of any nature is requested
to report it to [EMAIL PROTECTED]

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



Re: Margins

2006-08-09 Thread Chris Bowditch

Andre Groeneveld wrote:


Yes FOP0.20.5. The space between the lines, I want the lines of text
closer to each other.


Try setting line-height=0. This removes the half-leading added to each 
line. This works in 0.92beta. Not sure about the ancient 0.20.5. Please 
consider upgrading.


Chris

snip/




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



PDF generation

2006-08-09 Thread Remo Liechti
Hi all
I'm new to XSL and FOP and all that stuff. I need to create a PDF out of
a docbook. My docbook looks like:

book lang=en
bookinfo
titlemyTitle/title
/bookinfo


chapter
titlechapter one/title
simparatext text text/simpara
/chapter
/book

I run FOP like this:
Fop -xsl C:\xsl\fo\docbook.xsl -xml myDocBook.xml -pdf myPdf.pdf

It creates a PDF like this(I attached it to this mail):

- First page with the title - This is ok
- Page 2: title again, but small. Nothing more on the page. - not ok!
- page 3: Just empty. Why's that? - NOT OK
- page 4: The index of the book - NICE!
- page 5: My Text - ok


My questions are:

1. How do tell the XSL to not create the page 2 with the small title and
not to create an empty page?

2. How do I tell the XSL to create Bookmarks in the PDF?

3. How Do I create header and footer for this document? (I think this is
a docbook issue). But the header and footer should not appear on the
first page as well as not on the index page.


Thanks a lot guys!

Regards,
Remo
This message may contain legally privileged or confidential information and is 
therefore addressed to the named persons only. The recipient should inform the 
sender and delete this message, if he/she is not named as addressee.
The sender disclaims any and all liability for the integrity and punctuality of 
this message. The sender has activated an automatic virus scanning, but does 
not guarantee the virus free transmission of this message.


myPDF.pdf
Description: myPDF.pdf
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: out of memory error

2006-08-09 Thread Luis Ferro

I'm using the latest fop version from svn as of yesterday...

In the attachment i send the files i use to create a PDF with the index and
one chapter of the book. The index references are all turned off but it
still gets out of heap...

When trying to assemble the PDF in command line (environment in the
attachment also)... it always gives the same error of lack of heap memory...

I've tryed with -XX Aggressive (spelling) as someone suggested and with
several options to increase the heap... but after processing the full .fo
file (when it stops to echo errors and i suppose it starts crunshing)...

(btw the problem also happens to fop 0.20.5)

The machine has 2gb of ram and is a pentium 4 HT...

I'm completly lost on how to make this work... :(

Thanx in advance,
Luis Ferro
Portugal
http://www.nabble.com/user-files/232/memory_problem_thrunk_svn_20060807.zip
memory_problem_thrunk_svn_20060807.zip 
-- 
View this message in context: 
http://www.nabble.com/out-of-memory-error-tf2044079.html#a5724811
Sent from the FOP - Users forum at Nabble.com.


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



Re: PDF generation

2006-08-09 Thread Chris Bowditch

Remo Liechti wrote:

Hi all
I'm new to XSL and FOP and all that stuff. I need to create a PDF out of
a docbook. My docbook looks like:

book lang=en
bookinfo
titlemyTitle/title
/bookinfo


chapter
titlechapter one/title
simparatext text text/simpara
/chapter
/book

I run FOP like this:
Fop -xsl C:\xsl\fo\docbook.xsl -xml myDocBook.xml -pdf myPdf.pdf

It creates a PDF like this(I attached it to this mail):

- First page with the title - This is ok
- Page 2: title again, but small. Nothing more on the page. - not ok!
- page 3: Just empty. Why's that? - NOT OK
- page 4: The index of the book - NICE!
- page 5: My Text - ok


My questions are:

1. How do tell the XSL to not create the page 2 with the small title and
not to create an empty page?


The empty page 3 might be because the attribute force-page-count=auto 
is present on the page-sequence. This needs to 
forcae-page-count=no-force. I've no idea how to do that in Docbook. I 
also don't know why the 2nd page appears. Have you asked these questions 
on the docbook forum too?




2. How do I tell the XSL to create Bookmarks in the PDF?


I know how to do this in raw XSL-FO, again no idea how in docbook XML, 
sorry! The exact method used to creating bookmarks is different 
depending on which version of FOP you are using?




3. How Do I create header and footer for this document? (I think this is
a docbook issue). But the header and footer should not appear on the
first page as well as not on the index page.


This is possible using raw XSL-FO constructs, but I don't know how to do 
it in docbook XML.


Sorry I can't help you more, but I get the feeling most of yopur 
questions would be better suited on a docbook mailing list.


Chris




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



Centering content in Block

2006-08-09 Thread andyrob_24_7
I have a block that I am using in the bottom corner of my page. In this I want 
to display a page number.

The block is a square and I would like to center the page number so that if the 
number of digits increases it stays cenrtal. 

Here is what I have so far:

fo:block border=solid left=0mm margin-right=-25mm margin-top=5mm  
padding-before=4mm padding-after=10mm margin-left=150mm 
background-color=#797166 color=#2A2A2A
fo:inline border=solid margin-right=3mm font-weight=bold 
margin-top=10mm color=#ff font-size=14pt
fo:page-number padding-start=4.5mm border=solid /
/fo:inline
/fo:block

But this doesn't centre the content.

Can anyone offer me some tips on this.

thanks

Andy R

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/messages/fop-users@xmlgraphics.apache.org/topic.html

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



RE: PDF generation

2006-08-09 Thread Remo Liechti
Hi Chris
Thanks a lot for the answers.

I think the only problem I have now is to pass the parameters to the XSL
document.

Fop -xsl C:\xsl\fo\docbook.xsl -xml myDocBook.xml -pdf myPdf.pdf

How do I pass this parameter forcae-page-count=no-force. To this xsl?
I Tried a lot of ways, nothing worked... like:

Fop -xsl C:\xsl\fo\docbook.xsl forcae-page-count=no-force -xml
myDocBook.xml -pdf myPdf.pdf


Any idea?

Remo




-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 9. August 2006 15:18
To: fop-users@xmlgraphics.apache.org
Subject: Re: PDF generation

Remo Liechti wrote:
 Hi all
 I'm new to XSL and FOP and all that stuff. I need to create a PDF out
of
 a docbook. My docbook looks like:
 
 book lang=en
   bookinfo
   titlemyTitle/title
   /bookinfo
 
 
   chapter
   titlechapter one/title
   simparatext text text/simpara
   /chapter
 /book
 
 I run FOP like this:
 Fop -xsl C:\xsl\fo\docbook.xsl -xml myDocBook.xml -pdf myPdf.pdf
 
 It creates a PDF like this(I attached it to this mail):
 
 - First page with the title - This is ok
 - Page 2: title again, but small. Nothing more on the page. - not ok!
 - page 3: Just empty. Why's that? - NOT OK
 - page 4: The index of the book - NICE!
 - page 5: My Text - ok
 
 
 My questions are:
 
 1. How do tell the XSL to not create the page 2 with the small title
and
 not to create an empty page?

The empty page 3 might be because the attribute force-page-count=auto 
is present on the page-sequence. This needs to 
forcae-page-count=no-force. I've no idea how to do that in Docbook. I 
also don't know why the 2nd page appears. Have you asked these questions

on the docbook forum too?

 
 2. How do I tell the XSL to create Bookmarks in the PDF?

I know how to do this in raw XSL-FO, again no idea how in docbook XML, 
sorry! The exact method used to creating bookmarks is different 
depending on which version of FOP you are using?

 
 3. How Do I create header and footer for this document? (I think this
is
 a docbook issue). But the header and footer should not appear on the
 first page as well as not on the index page.

This is possible using raw XSL-FO constructs, but I don't know how to do

it in docbook XML.

Sorry I can't help you more, but I get the feeling most of yopur 
questions would be better suited on a docbook mailing list.

Chris




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

This message may contain legally privileged or confidential information and is 
therefore addressed to the named persons only. The recipient should inform the 
sender and delete this message, if he/she is not named as addressee.
The sender disclaims any and all liability for the integrity and punctuality of 
this message. The sender has activated an automatic virus scanning, but does 
not guarantee the virus free transmission of this message.

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



User Types

2006-08-09 Thread andyrob_24_7
I'd be interested to know what types of people are using the FOP engine to 
generate documents.

Could you indicate whether your setup has a dedicated programmer, or team of 
programmers, individual author, technical author etc.

Does the same person who writes the content setup your FOP transformations.

thanks

Andy R

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/messages/fop-users@xmlgraphics.apache.org/topic.html

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



RE: PDF generation

2006-08-09 Thread Remo Liechti
Okay, I have to do it in two steps:

java -jar saxon.jar -o myFormattingObject.fo myDocBook.xml
c:\doc\xsl\fo\docbook.xsl forcae-page-count=no-force

call C:\Daten\spoc7\doc\fop\Fop -fo myFormattingObject.fo -pdf
myPdf.pdf


But the empty page's still there...

Remo


-Original Message-
From: Remo Liechti [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 9. August 2006 16:17
To: fop-users@xmlgraphics.apache.org
Subject: RE: PDF generation

Hi Chris
Thanks a lot for the answers.

I think the only problem I have now is to pass the parameters to the XSL
document.

Fop -xsl C:\xsl\fo\docbook.xsl -xml myDocBook.xml -pdf myPdf.pdf

How do I pass this parameter forcae-page-count=no-force. To this xsl?
I Tried a lot of ways, nothing worked... like:

Fop -xsl C:\xsl\fo\docbook.xsl forcae-page-count=no-force -xml
myDocBook.xml -pdf myPdf.pdf


Any idea?

Remo




-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 9. August 2006 15:18
To: fop-users@xmlgraphics.apache.org
Subject: Re: PDF generation

Remo Liechti wrote:
 Hi all
 I'm new to XSL and FOP and all that stuff. I need to create a PDF out
of
 a docbook. My docbook looks like:
 
 book lang=en
   bookinfo
   titlemyTitle/title
   /bookinfo
 
 
   chapter
   titlechapter one/title
   simparatext text text/simpara
   /chapter
 /book
 
 I run FOP like this:
 Fop -xsl C:\xsl\fo\docbook.xsl -xml myDocBook.xml -pdf myPdf.pdf
 
 It creates a PDF like this(I attached it to this mail):
 
 - First page with the title - This is ok
 - Page 2: title again, but small. Nothing more on the page. - not ok!
 - page 3: Just empty. Why's that? - NOT OK
 - page 4: The index of the book - NICE!
 - page 5: My Text - ok
 
 
 My questions are:
 
 1. How do tell the XSL to not create the page 2 with the small title
and
 not to create an empty page?

The empty page 3 might be because the attribute force-page-count=auto 
is present on the page-sequence. This needs to 
forcae-page-count=no-force. I've no idea how to do that in Docbook. I 
also don't know why the 2nd page appears. Have you asked these questions

on the docbook forum too?

 
 2. How do I tell the XSL to create Bookmarks in the PDF?

I know how to do this in raw XSL-FO, again no idea how in docbook XML, 
sorry! The exact method used to creating bookmarks is different 
depending on which version of FOP you are using?

 
 3. How Do I create header and footer for this document? (I think this
is
 a docbook issue). But the header and footer should not appear on the
 first page as well as not on the index page.

This is possible using raw XSL-FO constructs, but I don't know how to do

it in docbook XML.

Sorry I can't help you more, but I get the feeling most of yopur 
questions would be better suited on a docbook mailing list.

Chris




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

This message may contain legally privileged or confidential information
and is therefore addressed to the named persons only. The recipient
should inform the sender and delete this message, if he/she is not named
as addressee.
The sender disclaims any and all liability for the integrity and
punctuality of this message. The sender has activated an automatic virus
scanning, but does not guarantee the virus free transmission of this
message.

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

This message may contain legally privileged or confidential information and is 
therefore addressed to the named persons only. The recipient should inform the 
sender and delete this message, if he/she is not named as addressee.
The sender disclaims any and all liability for the integrity and punctuality of 
this message. The sender has activated an automatic virus scanning, but does 
not guarantee the virus free transmission of this message.

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



Re: RE: Commercial Documents

2006-08-09 Thread andyrob_24_7
So you write content for your reports and sales docs in HTML then transform?

Do you ever combine multiple html files into one pdf?

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/message/fop-users@xmlgraphics.apache.org/4599562.html

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



Re: PDF generation

2006-08-09 Thread Vincent Hennebert

Hi Remo,

you should really try to ask your questions on the docbook-apps [1]
mailing list. Those are questions related to XSLT customization rather
than transforming the resulting FO into PDF, and that list will be
much more suited.

You may also want to have a look at the documentation possibly shipped
with your DocBook stylesheets: there are lots of parameters to
customize the output. If, however, no parameter suits your needs then
you will have to write a customization layer above the stylesheets and
this requires some XSLT skills. But again, if you ask your questions
on the docbook-apps mailing-list you will get useful hints within the
hour.

HTH,
Vincent

[1] http://wiki.docbook.org/topic/DocBookAppsMailingList


2006/8/9, Remo Liechti:

Okay, I have to do it in two steps:

java -jar saxon.jar -o myFormattingObject.fo myDocBook.xml
c:\doc\xsl\fo\docbook.xsl forcae-page-count=no-force

call C:\Daten\spoc7\doc\fop\Fop -fo myFormattingObject.fo -pdf
myPdf.pdf


But the empty page's still there...

Remo


-Original Message-
From: Remo Liechti [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 9. August 2006 16:17
To: fop-users@xmlgraphics.apache.org
Subject: RE: PDF generation

Hi Chris
Thanks a lot for the answers.

I think the only problem I have now is to pass the parameters to the XSL
document.

Fop -xsl C:\xsl\fo\docbook.xsl -xml myDocBook.xml -pdf myPdf.pdf

How do I pass this parameter forcae-page-count=no-force. To this xsl?
I Tried a lot of ways, nothing worked... like:

Fop -xsl C:\xsl\fo\docbook.xsl forcae-page-count=no-force -xml
myDocBook.xml -pdf myPdf.pdf


Any idea?

Remo




-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 9. August 2006 15:18
To: fop-users@xmlgraphics.apache.org
Subject: Re: PDF generation

Remo Liechti wrote:
 Hi all
 I'm new to XSL and FOP and all that stuff. I need to create a PDF out
of
 a docbook. My docbook looks like:

 book lang=en
   bookinfo
   titlemyTitle/title
   /bookinfo


   chapter
   titlechapter one/title
   simparatext text text/simpara
   /chapter
 /book

 I run FOP like this:
 Fop -xsl C:\xsl\fo\docbook.xsl -xml myDocBook.xml -pdf myPdf.pdf

 It creates a PDF like this(I attached it to this mail):

 - First page with the title - This is ok
 - Page 2: title again, but small. Nothing more on the page. - not ok!
 - page 3: Just empty. Why's that? - NOT OK
 - page 4: The index of the book - NICE!
 - page 5: My Text - ok


 My questions are:

 1. How do tell the XSL to not create the page 2 with the small title
and
 not to create an empty page?

The empty page 3 might be because the attribute force-page-count=auto
is present on the page-sequence. This needs to
forcae-page-count=no-force. I've no idea how to do that in Docbook. I
also don't know why the 2nd page appears. Have you asked these questions

on the docbook forum too?


 2. How do I tell the XSL to create Bookmarks in the PDF?

I know how to do this in raw XSL-FO, again no idea how in docbook XML,
sorry! The exact method used to creating bookmarks is different
depending on which version of FOP you are using?


 3. How Do I create header and footer for this document? (I think this
is
 a docbook issue). But the header and footer should not appear on the
 first page as well as not on the index page.

This is possible using raw XSL-FO constructs, but I don't know how to do

it in docbook XML.

Sorry I can't help you more, but I get the feeling most of yopur
questions would be better suited on a docbook mailing list.

Chris


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



Re: User Types

2006-08-09 Thread Jay Bryant
When I first started using FOP, I was a technical writer (often called
technical author in places where they speak the Queen's rather than the
President's English). I was fed up with both Word and FrameMaker, so I
implemented an XML-based documentation system, which included FOP. I no
longer write. Instead, I spend all of my time setting up similar systems for
various clients.

So, I guess I have been two kinds of users: a technical writer (or technical
author, if you prefer) and a consulting developer. I am also aware of
companies (Intel, for one) that have developers dedicated to document
production (though they also work on authoring tools and content
management).

FWIW

Jay Bryant
Bryant Communication Services


- Original Message - 
From: [EMAIL PROTECTED]
To: fop-users@xmlgraphics.apache.org
Sent: Wednesday, August 09, 2006 9:40 AM
Subject: User Types


 I'd be interested to know what types of people are using the FOP engine to
generate documents.

 Could you indicate whether your setup has a dedicated programmer, or team
of programmers, individual author, technical author etc.

 Does the same person who writes the content setup your FOP
transformations.

 thanks

 Andy R

 --
 This message was sent on behalf of [EMAIL PROTECTED] at
openSubscriber.com

http://www.opensubscriber.com/messages/fop-users@xmlgraphics.apache.org/topic.html

 -
 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: out of memory error

2006-08-09 Thread Luis Ferro

A report as such shouldn't pose a problem... 

Edit the fop.bat and add the -Xmx1024m argument before the -cp as i
did... it worked like a charm with 0.92b/thrunk...

To build the report try using the fop.bat at a command prompt... (it worked
for me will thru tomcat it was giving problems, but that is another issue)

Cheers...
LF
-- 
View this message in context: 
http://www.nabble.com/out-of-memory-error-tf2044079.html#a5728922
Sent from the FOP - Users forum at Nabble.com.


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



Re: Re: Centering content in Block

2006-08-09 Thread Luis Ferro

and if you want it centered vertically add:

display-align='center' (if i recall correctly)...

LF
-- 
View this message in context: 
http://www.nabble.com/Centering-content-in-Block-tf2078992.html#a5729507
Sent from the FOP - Users forum at Nabble.com.


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



Re: User Types

2006-08-09 Thread Glen Mazza

We use XSL/XSLT for reports and for Docbook.

Docbook:  Tech Writer creates the XML documents that will be fed through 
the Docbook stylesheets.  Uses Eclipse WTP for this.  The developer 
creates an Ant script that automates all of the tech writer's doc 
generation and publishing-to-web-server tasks so the writer only needs 
to know how to call Ant tasks from the script for these chores.  (Over 
time, our tech writer has also learned to modify and add new tasks in.)


Docbook Maintenance:  Tech Writer enters the documentation changes 
(after getting information from developers) and republishes them via Ant 
scripts.


XSL/XSLT Reports:  Very nice separation of data from presentation 
chores.  Developer first defines the input format of the XML document 
that will have the report's data.  The tech writer creates the 
stylesheet that will layout the report, usually leveraging previously 
created stylesheets, and also creates sample XML documents with dummy 
data for testing the stylesheets.  Tech writer also maintains any header 
stylesheets that will be imported by multiple document stylesheets.  
Developer creates the SQL, SAX Event generation, etc. that generate the 
XML document.


For a non-programming tech writer, XSLT coding presents a pleasantly 
not-very-steep but continuous learning curve--simple stuff can be done 
without any training at all (i.e., change the title in an already 
existing document from FOO to BAR -- anyone with a text editor can S  R 
on FOO to do this without needing to know a thing about XSLT) with more 
complex tasks (XSLT templates and functions and the like) gradually 
added in over time.


XSL/XSLT Reports Maintenance:  Tech Writer is responsible for making 
stylesheet/reports look nice and presentation/layout change requests, 
developer is responsible for bringing in new/different data elements 
from the SQL, as well as overall maintenance of the web application.


The main thing when doing Docbook and XSL/XSLT in production, especially 
with non-programming employees is:  Ant, Ant, Ant!  Keep everything 
automated and defined (classpaths, working directories, web servers to 
FTP to, etc.) within Ant and outside local IDEs/computer environment 
variables.  (Among other benefits, if some developers prefer this IDE 
and others another IDE, it won't matter, because everything is 
configured within the Ant build file.)  The second most important thing 
is CVS/SVN, CVS/SVN, CVS/SVN!  Eclipse makes it easy to immediately 
commit new changes.


Glen

[EMAIL PROTECTED] wrote:


I'd be interested to know what types of people are using the FOP engine to 
generate documents.

Could you indicate whether your setup has a dedicated programmer, or team of 
programmers, individual author, technical author etc.

Does the same person who writes the content setup your FOP transformations.

thanks

Andy R

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/messages/fop-users@xmlgraphics.apache.org/topic.html

-
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: User Types

2006-08-09 Thread Jay Bryant
That sounds a lot like what I'm doing for my current client, Glen.

I love Ant.

Jay Bryant
Bryant Communication Services

- Original Message - 
From: Glen Mazza [EMAIL PROTECTED]
To: fop-users@xmlgraphics.apache.org
Sent: Wednesday, August 09, 2006 11:50 AM
Subject: Re: User Types


 We use XSL/XSLT for reports and for Docbook.

 Docbook:  Tech Writer creates the XML documents that will be fed through
 the Docbook stylesheets.  Uses Eclipse WTP for this.  The developer
 creates an Ant script that automates all of the tech writer's doc
 generation and publishing-to-web-server tasks so the writer only needs
 to know how to call Ant tasks from the script for these chores.  (Over
 time, our tech writer has also learned to modify and add new tasks in.)

 Docbook Maintenance:  Tech Writer enters the documentation changes
 (after getting information from developers) and republishes them via Ant
 scripts.

 XSL/XSLT Reports:  Very nice separation of data from presentation
 chores.  Developer first defines the input format of the XML document
 that will have the report's data.  The tech writer creates the
 stylesheet that will layout the report, usually leveraging previously
 created stylesheets, and also creates sample XML documents with dummy
 data for testing the stylesheets.  Tech writer also maintains any header
 stylesheets that will be imported by multiple document stylesheets.
 Developer creates the SQL, SAX Event generation, etc. that generate the
 XML document.

 For a non-programming tech writer, XSLT coding presents a pleasantly
 not-very-steep but continuous learning curve--simple stuff can be done
 without any training at all (i.e., change the title in an already
 existing document from FOO to BAR -- anyone with a text editor can S  R
 on FOO to do this without needing to know a thing about XSLT) with more
 complex tasks (XSLT templates and functions and the like) gradually
 added in over time.

 XSL/XSLT Reports Maintenance:  Tech Writer is responsible for making
 stylesheet/reports look nice and presentation/layout change requests,
 developer is responsible for bringing in new/different data elements
 from the SQL, as well as overall maintenance of the web application.

 The main thing when doing Docbook and XSL/XSLT in production, especially
 with non-programming employees is:  Ant, Ant, Ant!  Keep everything
 automated and defined (classpaths, working directories, web servers to
 FTP to, etc.) within Ant and outside local IDEs/computer environment
 variables.  (Among other benefits, if some developers prefer this IDE
 and others another IDE, it won't matter, because everything is
 configured within the Ant build file.)  The second most important thing
 is CVS/SVN, CVS/SVN, CVS/SVN!  Eclipse makes it easy to immediately
 commit new changes.

 Glen

 [EMAIL PROTECTED] wrote:

 I'd be interested to know what types of people are using the FOP engine
to generate documents.
 
 Could you indicate whether your setup has a dedicated programmer, or team
of programmers, individual author, technical author etc.
 
 Does the same person who writes the content setup your FOP
transformations.
 
 thanks
 
 Andy R
 
 --
 This message was sent on behalf of [EMAIL PROTECTED] at
openSubscriber.com

http://www.opensubscriber.com/messages/fop-users@xmlgraphics.apache.org/top
ic.html
 
 -
 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]



Re: out of memory error

2006-08-09 Thread Luis Ferro

It has LOADS of page sequences... it's a book with 2500 pages where from 3 or
4 pages, the template changes from one column page to 2 column page...

Is there a better way of doing this swap of columns?

Right now... with 477 pages, to render it ocupies 1.1Gb memory... (my
machine has a top of 1.5Gb adressable to java...)...

Will try now to simplefy everything as best as i can...

How can i test if there is memory leaks somewhere (i'm a programmer but i'm
very very green in java)?

Cheers...
LF
-- 
View this message in context: 
http://www.nabble.com/out-of-memory-error-tf2044079.html#a5730306
Sent from the FOP - Users forum at Nabble.com.


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



Re: Re: Centering content in Block

2006-08-09 Thread Jamie Isaacs

On 8/9/06, Luis Ferro [EMAIL PROTECTED] wrote:

and if you want it centered vertically add:

display-align='center' (if i recall correctly)...

LF


In fop-trunk this will work for a PDF but not for an RTF.

--
Jamie Isaacs
Corrections Software
[EMAIL PROTECTED]

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



Re: out of memory error

2006-08-09 Thread Andreas L Delmelle

On Aug 9, 2006, at 19:27, Luis Ferro wrote:

Hi,

It has LOADS of page sequences... it's a book with 2500 pages where  
from 3 or
4 pages, the template changes from one column page to 2 column  
page...


Is there a better way of doing this swap of columns?


Not that I'm aware of... (you're using conditional-page-masters, right?)
Can you do us a favor and try if using just one simple-page-master  
makes a difference? Does it also consume a large amount of memory?


Tinker a bit with the properties on each of the page-masters, see if  
that changes anything... Never mind the output, it's simply to narrow  
down the searching area. If the test succeeds with one simple-page- 
master, or with different settings we'll get a better idea of where  
to start looking.


Thanks in advance!



Right now... with 477 pages, to render it ocupies 1.1Gb memory... (my
machine has a top of 1.5Gb adressable to java...)...

Will try now to simplefy everything as best as i can...


Jeremias recently added a MemoryEater to the trunk with which we can  
test, using one of your FO fragments and copying it a given number of  
times.
Choose one representative page-sequence, and the structure of your  
conditional-page-master-alternatives, post them in a Bugzilla --so  
only those people that are interested need to download it-- and we'll  
have a look.


How can i test if there is memory leaks somewhere (i'm a programmer  
but i'm

very very green in java)?


There is no easy way, I'm afraid. You can use a profiling tool one  
one of the sessions --the JDK comes with some profiling facilities,  
if you're a console-geek ;)-- to have a look at what the reference  
trees in the heap look like at a certain point in the process, but  
you'd still need some basic understanding of the process to figure  
out which active references are totally unnecessary.


If you're willing to invest time in this, of course you'd be welcome  
to do so. If you have any questions or remarks, or need help  
interpreting the results of a profiling session, just direct them to  
fop-dev, or use Bugzilla to track the issue.


Thanks again!


Cheers,

Andreas


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



Re: strange behaviour: Fop 0.92b, Websphere 6.0.2.0, PARENT_LAST deployment

2006-08-09 Thread J.Pietschmann

Fabien K wrote:

Hello,
we use Fop 0.92b in order to build documents on the fly under a Websphere
Application Server 6.0.2.0

We I deploy my application in PARENT_FIRST classpath mode, everything's ok.
But if I only change deployement rules of the app to PARENT_LAST classpath
mode,
I catch exceptions ( you can see them at the end of the mail ).


here are the only jar used in the application  ( it's a demo Webapp.. )
avalon-framework-4.2.0.jar
batik-all-1.6.jar
commons-beanutils.jar
commons-collections.jar
commons-io-1.1.jar
commons-lang.jar
fop.jar
serializer-2.7.0.jar
xmlgraphics-commons-1.0.jar

Any idea?

Thanks in advance.

Exception catched:
---
[09/08/06 09:23:37:075 CEST] 003b FOTreeBuilder W
org.apache.fop.fo.FOTreeBuilder$MainFOHandler endElement Mismatch:
page-sequence (http://www.w3.org/1999/XSL/Format) vs. root


Something is corrupting the SAX event stream. The usual suspects are
buggy XML base libraries. There could be any number of other reasons,
hard to tell without having a look at all the details of the WebSphere
installation.
Double check your webapp to make sure no old xml-api.jar or xalan.jar
sneaked in.

J.Pietschmann

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



Re: out of memory error

2006-08-09 Thread Jeremias Maerki
Not sure that playing with the page-masters will really help. I don't
think they have an influence here.

I've just committed a helper XSLT [1] which can split Luis' FO file at
page-sequence boundaries. It reveals that one of the page-sequences
alone makes up 18MB out of the 23MB of the full FO file. I guess that is
what FOP chokes on: Just too much data in one page-sequence and FOP
currently cannot free any objects while inside a page-sequence.

[1] http://svn.apache.org/viewvc?rev=430134view=rev

I'd try to find way to further split up that large page-sequence. This
should enable FOP to free memory and handle this file with less heap
space.

On 09.08.2006 20:13:43 Andreas L Delmelle wrote:
 On Aug 9, 2006, at 19:27, Luis Ferro wrote:
 
 Hi,
 
  It has LOADS of page sequences... it's a book with 2500 pages where  
  from 3 or
  4 pages, the template changes from one column page to 2 column  
  page...
 
  Is there a better way of doing this swap of columns?
 
 Not that I'm aware of... (you're using conditional-page-masters, right?)
 Can you do us a favor and try if using just one simple-page-master  
 makes a difference? Does it also consume a large amount of memory?
 
 Tinker a bit with the properties on each of the page-masters, see if  
 that changes anything... Never mind the output, it's simply to narrow  
 down the searching area. If the test succeeds with one simple-page- 
 master, or with different settings we'll get a better idea of where  
 to start looking.
 
 Thanks in advance!
 
 
  Right now... with 477 pages, to render it ocupies 1.1Gb memory... (my
  machine has a top of 1.5Gb adressable to java...)...
 
  Will try now to simplefy everything as best as i can...
 
 Jeremias recently added a MemoryEater to the trunk with which we can  
 test, using one of your FO fragments and copying it a given number of  
 times.
 Choose one representative page-sequence, and the structure of your  
 conditional-page-master-alternatives, post them in a Bugzilla --so  
 only those people that are interested need to download it-- and we'll  
 have a look.
 
  How can i test if there is memory leaks somewhere (i'm a programmer  
  but i'm
  very very green in java)?
 
 There is no easy way, I'm afraid. You can use a profiling tool one  
 one of the sessions --the JDK comes with some profiling facilities,  
 if you're a console-geek ;)-- to have a look at what the reference  
 trees in the heap look like at a certain point in the process, but  
 you'd still need some basic understanding of the process to figure  
 out which active references are totally unnecessary.
 
 If you're willing to invest time in this, of course you'd be welcome  
 to do so. If you have any questions or remarks, or need help  
 interpreting the results of a profiling session, just direct them to  
 fop-dev, or use Bugzilla to track the issue.
 
 Thanks again!
 
 
 Cheers,
 
 Andreas


Jeremias Maerki


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



Re: Memory leak? (was: 'Possible' memory leak on fop-users)

2006-08-09 Thread Karthik
Andreas,

I ran my test cases against fop-trunk as of 08/03 and am seeing a very good
boost in performance. I profiled against the same test case that produced
loitering objects in fop 0.92beta, and did NOT find any loitering objects with
the trunk code. The memory usage also seems to be very stable and I see more
frequent garbage collections than it used to be in 0.92beta. Overall, the 
process seem to use less memory than before.

Below are some comparisons from my test environment :

Total pages processed : 12000 approx (split up as 1500 pages per pdf in a loop)

1. Memory usage  : FOP 0.92beta started of with 500MB  and went all the way 
upto 1.2 GB easily and JVM crashed after processing 5000 pages approx. The
latest version used upto a max of 750 MB (from 500 MB initial) and never went
beyond that.

2. Processing Time : 0.92 beta slowed down gradually from 4 minutes per 1500
page pdf to 15 min, when finally the JVM crashed. But the latest code took
consistently 3-4 min to produce 1500 pages.

I'm not sure if the above comparison makes sense to anyone, 
but I just wanted to report for comparisons sake.

Overall the performance is been good so far and I'll keep profiling the process
to look for any red flags.

Let me know, if you want to track any other details.

Thanks
Karthik


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



Re: out of memory error

2006-08-09 Thread Luis Ferro

That sequence should be the chapter A ;)

Chapter C has about the double of A's size...

LF

(i will update the file with a new one with less... warnings/errors as soon
as i can - it started as a 0.20.5 system, and still needs some twiching)
-- 
View this message in context: 
http://www.nabble.com/out-of-memory-error-tf2044079.html#a5738048
Sent from the FOP - Users forum at Nabble.com.


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



Page definitions (thrunk-svn 20060808)

2006-08-09 Thread Luis Ferro

I've the following page master:

fo:simple-page-master master-name=base05
page-height=297mm 
page-width=210mm
margin-top=18mm 
margin-bottom=18mm
margin-left=17mm 
margin-right=17mm
fo:region-body region-name=body margin-top=22mm 
margin-bottom=20mm
margin-left=3mm margin-right=3mm background-color=#F2F2FF/
fo:region-before region-name=top extent=22mm
background-color=#FF/
fo:region-after region-name=bottom extent=20mm
background-color=#FF/
fo:region-start region-name=left extent=3mm 
background-color=#FF00FF/
fo:region-end region-name=right extent=3mm 
background-color=#FF00FF/
/fo:simple-page-master

The region start and end are cutting over the top and bottom ones...

However, i think that they should be trimmed by the height of both the top
and bottom ones (at least is what i understand from the standard after
reading in Dave's book XSL-FO page40)...

In this layout i intend to use a 3mm bleed margin on both sides for elements
on header and footer... and can't use the start/end to limit the body size,
because they overlap the header/footer sections...

LF

PS- I'm not sure if this is a problem or not... (i can use padding also so
not an unsurmounteable problem here)
-- 
View this message in context: 
http://www.nabble.com/Page-definitions-%28thrunk-svn-20060808%29-tf2082653.html#a5738132
Sent from the FOP - Users forum at Nabble.com.


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



Display-align in region-before static content

2006-08-09 Thread Luis Ferro

If you have a region-before and add the display-align=after as in:

fo:static-content flow-name=cabecalho display-align=after

fo:block
1
/fo:block

/fo:static-content

The content keeps aligned (with the top of the content on the top of the
region) to the top instead of to the bottom (with the bottom of the content
on the bottom of the region) as i would expect (if i'm reading correctly)...

;)

LF
-- 
View this message in context: 
http://www.nabble.com/Display-align-in-region-before-static-content-tf2082693.html#a5738253
Sent from the FOP - Users forum at Nabble.com.


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



background-color not painted...

2006-08-09 Thread Luis Ferro

If one uses a background-color=#FF in the fo:simple-page-master i was
expecting it to either giving an error (which it didn't) or that it painted
the whole area inside the page definition with the stated color (which i
think would be the default behavior).

But it just ignored the attribute...

:(




-- 
View this message in context: 
http://www.nabble.com/background-color-not-painted...-tf2082850.html#a5738650
Sent from the FOP - Users forum at Nabble.com.


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



Indentation not propagated...

2006-08-09 Thread Luis Ferro

If one uses start-indent=3mm end-indent=3mm in the fo:region-body, those
attributes are ignored by all the content placed in the section, when i
presume, they should be propagated as default indentation for all child
containers of it...

Ok... to sum up... there is no way of defining a bleed with a tinted
page...

1. placing a background color on the page definition is ignored and not
painted (so no default tinting of the whole page);
2. is not possible to add padding in the body region (so, one can't define a
body that covers the whole page BUT that its content actually only use part
of it);
3. placing indentation for the content of the body is ignored (equivalent of
point 2);
4. the region-start and region-end overlap the region-before and
region-after (and don't accept either the margin-top attribute - they ignore
it).

So... it is impossible to make a conditional definition of pages that need
to have a background color painted... (unless there is any other way of
doing it that i can't think of at the moment...).

LF

-- 
View this message in context: 
http://www.nabble.com/Indentation-not-propagated...-tf2082874.html#a5738716
Sent from the FOP - Users forum at Nabble.com.


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