Problems with version of xerces - xalan

2003-01-09 Thread Stefan Kuhn
Hi everbody,
I'm trying to make a pdf of an docbook document by transforming docbook to fo 
via xalan and by making pdf from that with fo. I'm now in trouble with 
different versions of xalan - xerces. I'm using jdk 1.4, with includes an 
older one and with this nothing is working. So I put xalan-2.0.1.jar and 
xerces_1_3_1.jar in jre/lib/endorsed. Now the docbook-fo-transformation is 
working, but not the fo-pdf transformation. When I use xalan-2.3.1.jar and 
xercesImpl-2.0.1.jar as contained in the fop release, the 
fo-pdf-transformation is working, but not the docbook-fo transformation. I 
suppose it's due to incompatible xalan-xerces versions.
Does anybody have experiences with that ? Any idea ?
Thanks a lot
Stefan

-- 
Stefan Kuhn M. A.
MPI of Chemical Ecology, Winzerlaer Str. 10, Beutenberg Campus, 07745 
Jena, Germany
Tel: +49(0)3641 571261 - Fax: +49(0)3641 571202

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



Re: Problems with version of xerces - xalan

2003-01-09 Thread Oleg Tkachenko
Stefan Kuhn wrote:
I'm trying to make a pdf of an docbook document by transforming docbook to fo 
via xalan and by making pdf from that with fo. I'm now in trouble with 
different versions of xalan - xerces. I'm using jdk 1.4, with includes an 
older one and with this nothing is working. So I put xalan-2.0.1.jar and 
xerces_1_3_1.jar in jre/lib/endorsed. Now the docbook-fo-transformation is 
working, but not the fo-pdf transformation. When I use xalan-2.3.1.jar and 
xercesImpl-2.0.1.jar as contained in the fop release, the 
fo-pdf-transformation is working, but not the docbook-fo transformation. I 
suppose it's due to incompatible xalan-xerces versions.
Does anybody have experiences with that ? Any idea ?
Check out xalan 2.4.1 and xercesImpl 2.2.1 (they are latest versions 
probably), fop0.20.5rc happy with them, may be docbook too?

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


Nesting Tables

2003-01-09 Thread Brian Lyons
I am new to FOP and I got the examples running.  I will be using FOP to
generate PDF invoices and was wondering if there are
any examples of how to nest a table inside of a table and have the nested
table be centered inside of the top level tables column?

Thanks!



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



Re: blank page

2003-01-09 Thread J.Pietschmann
Oscar Schoof wrote:
  There is no reliable way to get the real total page count with
   FO mechanisms, you can only get page numbers. 
For me, it is for reference only, i don't need a page-count. Still, a 
reference like 'page 2 of 1' is weird.
Look carefully: you want to have the *page count*, or alternatively,
the last page number in the page sequence (because counting starts
with 1). Usually this can be done with a page number citation
referring to something on the last page, however, there is *no* way
to refer to something on a forced blank page.
Looks to me that the 0.20.5 
renderer makes the use of fo:page-number-citation a problem.
It's the XSLFO design, not the implementation posing the problem.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Nesting Tables

2003-01-09 Thread J.Pietschmann
Brian Lyons wrote:
I am new to FOP and I got the examples running.  I will be using FOP to
generate PDF invoices and was wondering if there are
any examples of how to nest a table inside of a table and have the nested
table be centered inside of the top level tables column?
You can use blind table columns with proportional column width
for centering. The following will appear to center a 5cm
column:
 fo:table table-layout=fixed width=100%
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-column column-width=5cm/
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-body
 fo:table-row
   fo:table-cell/
   fo:table-cell...fo:table-cell
   fo:table-cell/
 /fo:table-row
  ...
Depending on your problem you can add the two columns for
centering to the table you want to have centered, or you
can use the code above and put the inner table into the
cell with the content.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problems with version of xerces - xalan

2003-01-09 Thread Stefan Kuhn
  Does anybody have experiences with that ? Any idea ?

 Check out xalan 2.4.1 and xercesImpl 2.2.1 (they are latest versions
 probably), fop0.20.5rc happy with them, may be docbook too?
It worked ! Thanks a lot. Trying the latest version is an idea I should have 
thought of myself :-(
-- 
Stefan Kuhn M. A.
MPI of Chemical Ecology, Winzerlaer Str. 10, Beutenberg Campus, 07745 
Jena, Germany
Tel: +49(0)3641 571261 - Fax: +49(0)3641 571202

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



[ERROR] Could not load external SVG:

2003-01-09 Thread Jasmin Mehta








Im trying to access the .xsl
file by setting the relative path. Ive written below line in my servlet
to set the baseDir:



org.apache.fop.configuration.Configuration.put(baseDir,http://localhost:8100/LDNotes/phySignatures/);



where phySignatures
is the dir where my images are located.



Im getting below error while opening the PDF file:



[ERROR] Could not load external SVG: The current document is
unable to create an

element
of the requested type (namespace: http://www.w3.org/2000/svg, name: hea

d).

[ERROR] Error while creating area :
No ImageReader for this type of image (http:

//localhost:8100/MDNotes/phySignatures/signature.gif)



Can somebody please help?



Thanks

Jasmin
















Re: problem in FOP for locating image with relative path

2003-01-09 Thread RShonk

Jasmin,

I had some problems using a relative path with images also. What I ended
doing was sending the application path as an attribute in the xml file.
Using application.getRealPath() from within your jsp should give you a
starting point, or ServletContext.getRealPath() from within a servlet.

Richard Shonk
Flowserve Corp.
Programmer / Analyst




   
  Jasmin Mehta  
   
  [EMAIL PROTECTED] To:  [EMAIL PROTECTED] 
   
  com cc:  
   
   Subject: problem in FOP for 
locating image with relative path   
  01/09/03 12:26
   
  PM
   
  Please respond
   
  to fop-user   
   

   

   



But a I want to use this xsl-fo file in my JSP, I want to give a relative
path for this image source. For example the JSP that has link to open this
PDF file using xsl-fo has
url=http://localhost:8100/LDNotes/doctor/ShowAllFinalDocs.jsp and my all
images to display are located in /LDNotes/doctor/ folder at default server
directory of JRun.

Can somebody suggest me what path can I use here?


Thanks

Jasmin






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



problem in FOP for locating image with relative path THOUGH have used BaseDir

2003-01-09 Thread Jasmin Mehta








Hi,



In context of my below email, I have also
tried with setting base dir from the servlet by writing below line in servlet:



 org.apache.fop.configuration.Configuration.put(baseDir,http://localhost:8100/LDNotes/doctor/);



and change my
xsl-fo code like below: (just specifying image file name in source attribute as
a relative path)



fo:block
text-align=center start-indent = 10.0cm


fo:external-graphic

  xsl:attribute name=srcxsl:value-of
select=Dictator_Signature//xsl:attribute

/fo:external-graphic

  /fo:block

But still Im getting below error:



[ERROR] Could not load external SVG: The
current document is unable to create an

element of the
requested type (namespace: http://www.w3.org/2000/svg, name: hea

d).

[ERROR] Error while creating area : No ImageReader for this type of image (http:

//localhost:8100/MDNotes/doctor/signature.gif)



Now, if I change my xsl-fo file again as
below (give full path where the file is located in local system)



xsl:attribute
name=srcC:\\JRun4\\servers\\default\\MDNotes\\phySignatures\\xsl:value-of
select=Dictator_Signature//xsl:attribute



than it works
fine.



Can anybody pl
focus on who to solve this problem



Thanks

Jasmin







-Original Message-
From: Jasmin Mehta 
Sent: Thursday,
 January 09, 2003 12:27 PM
To: '[EMAIL PROTECTED]'
Subject: problem in FOP for
locating image with relative path



Hi,



I
want to add image in the PDF file. Im using below tag in my xsl-fo file



fo:block
text-align=center start-indent = 10.0cm




fo:external-graphic




xsl:attribute name=srcC:/JRun4/servers/default/LDNotes/doctor/xsl:value-of
select=Dictator_Signature//xsl:attribute



 




/fo:external-graphic




/fo:block







and
it works fine. But a I want to use this xsl-fo file in my JSP, I want to give a
relative path for this image source. For example the JSP that has link to open
this PDF file using xsl-fo has
url="" and my all images
to display are located in /LDNotes/doctor/ folder at default server directory
of JRun.





Now,
if I write the tag like below:





xsl:attribute
name=src./../doctor/xsl:value-of
select=Dictator_Signature//xsl:attribute







Im
getting below error and image is not displaying.







[ERROR]
Error while creating area : Error with image URL: .\..\doctor\signature.gif
(The system cannot find the path specified) and no base directory is specified.



Can
somebody suggest me what path can I use here?



I
also dont know how to set the base directory. My server url can be http://localhost:8100/LDNotes/doctor
while I will access the .xsl file from the servlet.



Thanks



Jasmin