Menu

#1 Ignoring Doctypes

open
2
2001-10-14
2001-10-14
No

The attached class file can be used as replacement for
the file in
$XWEBHOME/net/sourceforge/xweb/backend/documents and
it will cause XWeb to strip all Doctype declarations
from XML input.

This is a pretty nasty workaround for namespace
troubles: if the XHTML DTD is attached to a file it
will put the whole XML tree into the XHTML namespace
which is not matched by the normal XSLT stylesheets.
The attached file removes the DTD and therefore the
namespace declaration.

This is tested with the Saxon XSLT processor in the
XWeb distribution, maybe others try to validate the
entities used -- then things will break again.

Discussion

  • Peter Becker

    Peter Becker - 2001-10-14

    Replacement class-file

     
  • Peter Becker

    Peter Becker - 2001-10-20

    Logged In: YES
    user_id=41603

    Just to make this clear: this is not a bugfix. Don't apply
    this just because you can, it will break all websites
    relying on namespaces, e.g. the Tutorial in the
    distribution.

    A feature to toggle this behaviour is planned, currently
    you have to switch the class files if you need both
    versions.

     

Log in to post a comment.