note 28484 added to function.xslt-process
| From: | twa at carlbro dot dk | Date: | Tue, 14 Jan 2003 16:12:04 +0000 |
| Subject: | note 28484 added to function.xslt-process | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42134@lists.php.net to get a copy of this message | ||
Hi... I'm back with the result :)
After a good discussion on the official Sablotron / PHP mailing list I found out how to fix the
problem I had with PHP 4.3.0. So now I will just summarize it here. The full discussion can be found
online on this address:
http://archive.gingerall.cz/archives/public/sab-php/msg00252.html
The problem is actually an error in my code (huh? I thought I wrote error-free code). In my XSLT
file I use the document() method provided by Sablotron. In my previous example I use this syntax:
document('foobar')
The real syntax is actually:
document('arg:/foobar')
The reason why this worked in previous versions of PHP was due to an error in the Sablotron lib
(anyway so I think).
Another thing that I would like to share is the syntax of the 2nd, 3rd and 5th argument in the
xslt_process() method. In the official examples on this page the names "_xml" and
"_xsl" is used. But according to the Sablotron people any name can be used. And if you are
wondering if you need the preceding "/" or not - then Lenar Lõhmus from the sab-php
mailing list told me it would be wise to use it. Normally it works either way, but it is always the
best thing to use the slash. For the full discussion on this subject see the other thread at:
http://archive.gingerall.cz/archives/public/sab-php/msg00260.html
/watson
--
http://www.php.net/manual/en/function.xslt-process.php
http://master.php.net/manage/user-notes.php?action=edit+28484
http://master.php.net/manage/user-notes.php?action=delete+28484
http://master.php.net/manage/user-notes.php?action=reject+28484