note 29185 rejected from function.xslt-process by maxim
| From: | maxim@php.net | Date: | Wed, 05 Feb 2003 13:40:47 +0000 |
| Subject: | note 29185 rejected from function.xslt-process by maxim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-43462@lists.php.net to get a copy of this message | ||
I want to transform an xml-document 'sample.xml' specified by a user. But I don't
know in advance, if this document is well-formed or not. So, as in Example 1, I can check if the
input file is ok or not as follows:
if (xslt_process($xh, 'sample.xml', 'sample.xsl', 'result.xml')) {
echo "input file OK";
} else {
echo "input file NOT OK";
}
But if the input file is not ok, I get all the default sablotron warnings in the output in addition
to "input file NOT OK". How can I suppress the default warnings of the xslt_process
function? Or even better: Is there another way to check a document for welformedness, where you
don't get default warnings?