note 29185 added to function.xslt-process
| From: | hans at rack1 dot php dot net | Date: | Wed, 05 Feb 2003 12:32:13 +0000 |
| Subject: | note 29185 added to function.xslt-process | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43461@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?
--
http://www.php.net/manual/en/function.xslt-process.php
http://master.php.net/manage/user-notes.php?action=edit+29185
http://master.php.net/manage/user-notes.php?action=delete+29185
http://master.php.net/manage/user-notes.php?action=reject+29185