Hi,

I just bumped into this in org.apache.xml.serialize.HTMLdtd.java ...
the system IDs for HTML and XHTML are both set to
http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-strict.dtd
(I'm quoting the code below), whereas according to this w3.org page
http://www.w3.org/TR/1998/REC-html40-19980424/sgml/dtd.html
the system ID for -//W3C//DTD HTML 4.0//EN should be
http://www.w3.org/TR/REC-html40/strict.dtd
This results in the output of the HTML method referencing a DTD
that I really don't think it should be referencing.

Isn't this simply a bug? Or am I missing something very sage about
public and system IDs? In any case it doesn't seem right to link to
an xhtml DTD for a document that clearly isn't well-formed XML ...

In case someone more knowledgeable agrees that this is a bug, I've
attached a patch for it.

Cheers,

        - Gulli



Quoted code from HTMLdtd.java (revision 1.12)

    /**
     * Public identifier for HTML document type.
     */
    public static final String HTMLPublicId = "-//W3C//DTD HTML 4.0//EN";

    /**
     * System identifier for HTML document type.
     */
    public static final String HTMLSystemId =
        "http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-strict.dtd";;

    /**
     * Public identifier for XHTML document type.
     */
    public static final String XHTMLPublicId =
        "-//W3C//DTD XHTML 1.0 Strict//EN";

    /**
     * System identifier for XHTML document type.
     */
    public static final String XHTMLSystemId =
        "http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-strict.dtd";;



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to