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 .
--
Best Regards
George Goodyer
Developer
iTouch Labs
On 2001.02.09 14:46:27 +0200 Pavel Hlavnicka wrote:
>
> George,
>
> there is one important thing missing in your message... What's going on?
>
> Have you got PHP problems? Can you run some demos? Did you contacted PHP
> people? Have you prblems with your stylesheets? Can you process them
> using sabcmd? Can you see some more specific errors?
>
> We'd like to help you, but, please, tell us more details.
>
> Pavel
>
> George Goodyer wrote:
>
> > Hi All,
> >
> > I am developing a Portal solution using Sablotron to parse the XML/XSL.
> > I have had numerous problems trying to get the XSLT Error to display
> output
> > to the monitor.
> > I am using PHP4 to do the process request .
> > Is the solution bound to the initial setup or am I missing something ?
> > I would like to maintain the logs but have the error in full displayed
> on
> > the monitor as well.
> >
> > Advice would be appreciated .
>
>
> --
> Pavel Hlavnicka
> Ginger Alliance Ltd.
> Prague; Czech Republic
>
>
>
>