note 28484 deleted from function.xslt-process by sobak

From: Date: Tue, 22 Nov 2016 03:33:10 +0000
Subject: note 28484 deleted from function.xslt-process by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207354@lists.php.net to get a copy of this message
Note Submitter: twa at carlbro dot dk ---- 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

« previous php.notes (#207354) next »