[Petal] [REQ] Escape HTML entities

Paul Arzul patricka at mkdoc.com
Wed Oct 8 14:38:18 BST 2003


On Wed 08-Oct-2003 at 12:05:24PM +0100, Jean-Michel Hiver wrote:
> OK more on this...
> 
> I have upgraded my XML::Parser, added the extra suggested line in
> Petal::Canonicalizer::XML, and changed the following file in the test
> suite:
> 
>   [jhiver at frogette Petal-1.06]$ more t/data/entities.xml 
>   <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>

this doctype is, i think, invalid[1]. you need to use double quotes on
the system and public identifiers. ie.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

(this made no difference to the problem for me.)

- p

1.
http://www.w3.org/QA/2002/04/valid-dtd-list.html



More information about the Petal mailing list