Re: XSLT problems....
| From: | sterling hughes | Date: | Wed, 07 Feb 2001 08:41:17 +0000 |
| Subject: | Re: XSLT problems.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38503@lists.php.net to get a copy of this message | ||
Javier Muniz wrote:
>
> In my experience this is caused by an error in your .xsl... not exactly
> the most verbose error so I don't know what's actually happening here.
>
> -jm
>
Yup, it is, to correct this, place the following function in your xslt
document::
function report_xslt_error($parser, $code, $level, $messages)
{
echo "Parser: $parser";
echo "\n<br>\n";
echo "Code: $code";
echo "\n<br>\n";
echo "Level: $level";
echo "\n<br>\n";
echo "Messages: ";
echo "\n<br>\n";
var_dump($messages);
}
And then before the xslt_run() function call place the following::
xslt_set_error_handler($parser, 'report_xslt_error');
And you will see a verbose listing of the errors.
Or you can upgrade to the latest cvs which output's a correct error!
-Sterling