XSLT Processor in PHP5

R

Roberto

Hi all,

I hope this newsgroup is good for my question...
I usually perform xsl transformations using the Saxon processor.
I also usually call, into my xsl files, external java functions.
Now, I would like use the xslt processor provided by php5.
Do you know if the php processor support external java functions?
I wrote a little xsl file wih a call to a java function and it doesn't work
:-(
Thanks in advanance for your help

ps
sorry for my english
 
M

Martin Honnen

Roberto said:
I hope this newsgroup is good for my question...
I usually perform xsl transformations using the Saxon processor.
I also usually call, into my xsl files, external java functions.
Now, I would like use the xslt processor provided by php5.
Do you know if the php processor support external java functions?

No, I don't think so. PHP 5 uses libxslt which is implemented in C and
not in Java. See http://xmlsoft.org/XSLT/ and
http://www.php.net/manual/en/book.xsl.php and in particular
http://www.php.net/manual/en/xsltprocessor.registerphpfunctions.php as
that explains how to use PHP to write functions to be used in your XSLT
stylesheet.
 
M

Martin Honnen

Roberto said:
I hope this newsgroup is good for my question...
I usually perform xsl transformations using the Saxon processor.
I also usually call, into my xsl files, external java functions.
Now, I would like use the xslt processor provided by php5.
Do you know if the php processor support external java functions?

No, I don't think so. PHP 5 uses libxslt which is implemented in C and
not in Java. See http://xmlsoft.org/XSLT/ and
http://www.php.net/manual/en/book.xsl.php and in particular
http://www.php.net/manual/en/xsltprocessor.registerphpfunctions.php as
that explains how to use PHP to write functions to be used in your XSLT
stylesheet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top