George,
I guess, it would be better contact some PHP group. From the Sablotron's
point of view is all OK.
Messages like
> " Error [code:2] [URI:arg:/_xmlinput] [line:1]
> XML parser error 3: no element found "
is reported by expat while parsing document. It is empty, it seems. We
could help you, if you'd see some XSL error or segfaults etc.
We do not use PHP, maybe somebody else in this list does.
Pavel
George Goodyer wrote:
> Pavel,
>
> Thank you for the response - herewith all information on hand.
>
> Have you got PHP problems?
> No - I am processing everything with PHP in conjunction just fine .
>
> Can you run some demos?
> I have numerous functional pages being processed at present .
>
> Did you contacted PHP people?
> No need as the php functions are correct.
>
> Have you prblems with your stylesheets?
> The stylesheets are correct .
>
> Can you process them using sabcmd?
> yes.
>
> Can you see some more specific errors?
>
> Scenario - Developers are going to use the system to develop XML/XSL pages
> and process the end result through
> Sablotron .At present the only way to determine a error is to tail the
> Apache error logs.
>
> Making use of the PHP Sablot features .
> Code Doing the proceessing as follows :
>
> function processPage($xml, $xsl)
> {
> if ( xslt_process($xsl, $xml, &$buf) == false) {
> return false;
> }
> return $buf;
>
> }
>
> At present should you provide faulty XSL/XML combination or bad syntax -
> The output is "XSLT ERROR:OK"
>
> I was told by the system administrator that it might be due to a compile
> time argument
> not being defined .
>
> I have tried numerous alternatives to obtain the message written to the log
> :
> I can read the file yes but I would like the screen output to be something
> along the
> lines of
> " Error [code:2] [URI:arg:/_xmlinput] [line:1]
> XML parser error 3: no element found "
>
> I have tried options like setting the handle - tried to explicitly to
> reffer to stdout etc.
> I have had no joy .
> I don't have problems with the product I simply was hoping for advice as to
> how I could do the error reporting in the correct manner .
> It's more a pre-emtive messure to assist fellow deveopers with accurate
> error reporting , should they upload faulty XML/XSL.
> Is this do to the install or is this a PHP problem ?
>
> Should my question be of no relavence to the group - sure , let me know .
>
> Thanking you in advance for your time .
--
Pavel Hlavnicka
Ginger Alliance Ltd.
Prague; Czech Republic