Re: XSLTProcessor without validation
| From: | Peter Ford | Date: | Fri, 15 Feb 2008 09:13:15 +0000 |
| Subject: | Re: XSLTProcessor without validation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269360@lists.php.net to get a copy of this message | ||
Siegfried Gipp wrote:
> Hi,
>
> i still got no answer. Maybe i did not see it, altough i'm trying to read any
> single post. But may be i overlooked it due to high traffic. So now i have
> set up a filter (hopefully) copying answers to another folder.
>
> Here is the question: Is it possible to disable validation when using
> XSLTProcessor? If yes, how?
>
> When i use xsltproc, the command line tool for the libxslt, i can use the
> switch --novalid to subpress validation. This makes a huge difference in
> speed. Without validation it is fast enough. With validation it takes far too
> long to be acceptable. So how do i use XSLTProcessor from within PHP to
> achieve the same result as if using xsltproc --novalid?
>
> Regards
> Siegfried
What if you don't have a DTD in the XML to validate it with?
I haven't tested it but it was something that worked in the Java XML processing
stuff. No DTD, no validation: simple!
So have you tried stripping the DOCTYPE declaration before XSLTing the XML?