[lxml-dev] lxml is loading dtd from w3.org but I don't want it to

Stefan Behnel stefan_ml at behnel.de
Sun Nov 23 08:44:44 CET 2008


Hi,

Brad Clements wrote:
> I cannot seem to disable loading DTD from w3.org when transforming a file.
> [...]
> If I do the transform with xsltproc, it goes fast and does not download 
> the dtd.

I checked what xsltproc is doing different. It sets the parse options on
the XSLT transform context. lxml didn't do that so far.

Could you check if the attached patch works for you?

Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: set-xslt-parse-options.patch
Type: text/x-patch
Size: 1013 bytes
Desc: not available
Url : http://codespeak.net/pipermail/lxml-dev/attachments/20081123/90644b96/attachment-0001.bin 


More information about the lxml-dev mailing list