<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=986203219-23052005>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986203219-23052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=986203219-23052005>I try to integrate
com.renderx.xep.XSLDriver in my PHP Code like this:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986203219-23052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=986203219-23052005>$driver = new Java
("com.renderx.xep.XSLDriver");</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986203219-23052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=986203219-23052005>It makes
<STRONG>no</STRONG> error!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986203219-23052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986203219-23052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=986203219-23052005>But if try to pass
some Parameter to the class, <SPAN class=986203219-23052005>for
example</SPAN>:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986203219-23052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=986203219-23052005>
<DIV><FONT face=Arial size=2><SPAN class=986203219-23052005>$driver = new Java
("com.renderx.xep.XSLDriver"<STRONG>,"help"</STRONG>);</SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986203219-23052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=986203219-23052005>I'm getting an error
"<STRONG>No matching constructor found in ...</STRONG>"</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986203219-23052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986203219-23052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=986203219-23052005><U>How can I solve
this Problem?</U></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986203219-23052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986203219-23052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=986203219-23052005>In PHP Manual (<A
href="http://de3.php.net/manual/en/ref.java.php">http://de3.php.net/manual/en/ref.java.php</A>)
I've found example for FOP (but it doesn't work with
XEP):</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=986203219-23052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><SPAN class=986203219-23052005>
<DIV class=phpcode><CODE><SPAN class=html><FONT face=Arial size=2><SPAN
class=986203219-23052005>---------------------------------</SPAN></FONT></SPAN></CODE></DIV>
<DIV class=phpcode><CODE><SPAN class=html><FONT face=Arial size=2>This module
allows PHP to interact with some interesting pieces of software - for one, it
allows PHP to convert XML FO files into PDF/PS/... with the use of Apache FOP
processor.<BR>Here's an example:<BR></FONT><FONT face=Arial><FONT size=2><SPAN
class=default><?<BR>$basedir </SPAN><SPAN class=keyword>= new </SPAN><SPAN
class=default>Java</SPAN><SPAN class=keyword>(</SPAN><SPAN
class=string>"java.io.File"</SPAN><SPAN class=keyword>, </SPAN><SPAN
class=string>"."</SPAN></FONT></FONT><FONT face=Arial><FONT size=2><SPAN
class=keyword>);<BR></SPAN><SPAN class=default>$outdir </SPAN><SPAN
class=keyword>= new </SPAN><SPAN class=default>Java</SPAN><SPAN
class=keyword>(</SPAN><SPAN class=string>"java.io.File"</SPAN><SPAN
class=keyword>, </SPAN><SPAN class=string>"out"</SPAN></FONT></FONT><FONT
face=Arial><FONT size=2><SPAN class=keyword>);<BR></SPAN><SPAN
class=default>$outdir</SPAN><SPAN class=keyword>-></SPAN><SPAN
class=default>mkdirs</SPAN></FONT></FONT><FONT face=Arial><FONT size=2><SPAN
class=keyword>();<BR><BR></SPAN><SPAN class=default>$fofile </SPAN><SPAN
class=keyword>= new </SPAN><SPAN class=default>Java</SPAN><SPAN
class=keyword>(</SPAN><SPAN class=string>"java.io.File"</SPAN><SPAN
class=keyword>, </SPAN><SPAN class=default>$basedir</SPAN><SPAN class=keyword>,
</SPAN><SPAN class=string>"xml/fo/helloworld.fo"</SPAN></FONT></FONT><FONT
face=Arial><FONT size=2><SPAN class=keyword>);<BR></SPAN><SPAN
class=default>$pdffile </SPAN><SPAN class=keyword>= new </SPAN><SPAN
class=default>Java</SPAN><SPAN class=keyword>(</SPAN><SPAN
class=string>"java.io.File"</SPAN><SPAN class=keyword>, </SPAN><SPAN
class=default>$outdir</SPAN><SPAN class=keyword>, </SPAN><SPAN
class=string>"ResultFO2PDF.pdf"</SPAN></FONT></FONT><FONT face=Arial><FONT
size=2><SPAN class=keyword>);<BR><BR>echo </SPAN><SPAN class=string>"Input:
"</SPAN><SPAN class=keyword>.</SPAN><SPAN class=default>$fofile</SPAN><SPAN
class=keyword>-></SPAN><SPAN class=default>toString</SPAN><SPAN
class=keyword>().</SPAN><SPAN class=string>"\n"</SPAN></FONT></FONT><FONT
face=Arial><FONT size=2><SPAN class=keyword>;<BR>echo </SPAN><SPAN
class=string>"Output: "</SPAN><SPAN class=keyword>.</SPAN><SPAN
class=default>$pdffile</SPAN><SPAN class=keyword>-></SPAN><SPAN
class=default>toString</SPAN><SPAN class=keyword>().</SPAN><SPAN
class=string>"\n"</SPAN></FONT></FONT><FONT face=Arial><FONT size=2><SPAN
class=keyword>;<BR><BR></SPAN><STRONG><SPAN class=default>$driver </SPAN><SPAN
class=keyword>= new </SPAN><SPAN class=default>Java</SPAN><SPAN
class=keyword>(</SPAN><SPAN
class=string>"org.apache.fop.apps.Driver"</SPAN></STRONG></FONT></FONT><FONT
face=Arial><FONT size=2><SPAN class=keyword><STRONG>);<BR></STRONG></SPAN><SPAN
class=default>$logger </SPAN><SPAN class=keyword>= new </SPAN><SPAN
class=default>Java</SPAN><SPAN class=keyword>(</SPAN><SPAN
class=string>"org.apache.avalon.framework.logger.ConsoleLogger"</SPAN></FONT></FONT><FONT
face=Arial><FONT size=2><SPAN class=keyword>);<BR></SPAN><SPAN
class=default>$driver</SPAN><SPAN class=keyword>-></SPAN><SPAN
class=default>setLogger</SPAN><SPAN class=keyword>(</SPAN><SPAN
class=default>$logger</SPAN></FONT></FONT><FONT face=Arial><FONT size=2><SPAN
class=keyword>);<BR></SPAN><SPAN class=default>$driver</SPAN><SPAN
class=keyword>-></SPAN><SPAN class=default>setRenderer</SPAN><SPAN
class=keyword>(</SPAN><SPAN class=default>$driver</SPAN><SPAN
class=keyword>-></SPAN><SPAN
class=default>RENDER_PDF</SPAN></FONT></FONT><FONT face=Arial><FONT size=2><SPAN
class=keyword>);<BR></SPAN><SPAN class=default>$out </SPAN><SPAN class=keyword>=
new </SPAN><SPAN class=default>Java</SPAN><SPAN class=keyword>(</SPAN><SPAN
class=string>"java.io.FileOutputStream"</SPAN><SPAN class=keyword>, </SPAN><SPAN
class=default>$pdffile</SPAN></FONT></FONT><FONT face=Arial><FONT size=2><SPAN
class=keyword>);<BR></SPAN><SPAN class=default>$driver</SPAN><SPAN
class=keyword>-></SPAN><SPAN class=default>setOutputStream</SPAN><SPAN
class=keyword>(</SPAN><SPAN class=default>$out</SPAN></FONT></FONT><FONT
face=Arial><FONT size=2><SPAN class=keyword>);<BR></SPAN><SPAN class=default>$in
</SPAN><SPAN class=keyword>= new </SPAN><SPAN class=default>Java</SPAN><SPAN
class=keyword>(</SPAN><SPAN class=string>"java.io.FileInputStream"</SPAN><SPAN
class=keyword>, </SPAN><SPAN class=default>$fofile</SPAN></FONT></FONT><FONT
face=Arial><FONT size=2><SPAN class=keyword>);<BR></SPAN><SPAN
class=default>$driver</SPAN><SPAN class=keyword>-></SPAN><SPAN
class=default>setInputSource</SPAN><SPAN class=keyword>(new </SPAN><SPAN
class=default>Java</SPAN><SPAN class=keyword>(</SPAN><SPAN
class=string>"org.xml.sax.InputSource"</SPAN><SPAN class=keyword>, </SPAN><SPAN
class=default>$in</SPAN></FONT></FONT><FONT face=Arial><FONT size=2><SPAN
class=keyword>));<BR></SPAN><STRONG><SPAN class=default>$driver</SPAN><SPAN
class=keyword>-></SPAN><SPAN
class=default>run</SPAN></STRONG></FONT></FONT><FONT face=Arial><FONT
size=2><SPAN class=keyword><STRONG>();<BR></STRONG></SPAN><SPAN
class=default>$in</SPAN><SPAN class=keyword>-></SPAN><SPAN
class=default>close</SPAN></FONT></FONT><FONT face=Arial><FONT size=2><SPAN
class=keyword>();<BR></SPAN><SPAN class=default>$out</SPAN><SPAN
class=keyword>-></SPAN><SPAN class=default>close</SPAN></FONT></FONT><FONT
size=2><FONT face=Arial><SPAN class=keyword>();<BR></SPAN><SPAN
class=default>?></SPAN></FONT></FONT></SPAN></CODE></DIV>
<DIV class=phpcode><CODE><SPAN class=html><FONT><FONT face=Arial size=2><SPAN
class=default><SPAN
class=986203219-23052005>---------------------------------</SPAN></SPAN></FONT></FONT></SPAN></CODE></DIV></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face="Arial Narrow">Kind regards</FONT></DIV>
<DIV align=left><FONT face="Arial Narrow"><BR><FONT color=#000080 size=2><B>Paul
Wagner<BR>Service Operations Centre<BR>Global Service Platforms -
Operations<BR></B>Mail: </FONT><A
href="mailto:paul.wagner@vodafone.com"><U><FONT color=#0000ff
size=2>paul.wagner@vodafone.com </U></FONT></A><BR><BR><FONT color=#000080
size=1>Vodafone Deutschland GmbH<BR>Registered Office: Mannesmannufer 2, D-40213
Düsseldorf, Germany<BR>Registered in Germany No. HRB 38062 </FONT></FONT></DIV>
<DIV> </DIV></BODY></HTML>