[Ocaml-pxp-users] validation with an external DTD
Gerd Stolpmann
info at gerd-stolpmann.de
Fri Jun 27 08:06:44 PDT 2003
Am Fre, 2003-06-27 um 15.44 schrieb Stefano Zacchiroli:
> On Fri, Jun 27, 2003 at 03:23:54PM +0200, Gerd Stolpmann wrote:
> > > Is it possible to validate documents with no DOCTYPE declaration against
> > > an external DTD?
> > parse_content_entity does exactly this. You pass the dtd to this
> > function, and it validates the input file against it.
>
> Ok
>
> > In the newest release (1.1.94), parse_wfdocument_entity has
> > ~transform_dtd, too.
>
> Yes, but it can't be used for the validation, right?
In principle, yes. This depends on the DTD. Normally,
parse_wfdocument_entity creates a DTD that does not allow validatation,
but with ~transform_dtd you can modify it, or replace it by a different
one.
Of course, ~transform_dtd was not invented for these manipulations. The
intention is to have a hook to add further entities.
Gerd
--
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany
gerd at gerd-stolpmann.de http://www.gerd-stolpmann.de
------------------------------------------------------------
More information about the Ocaml-pxp-users
mailing list