From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Dec 05 2000 - 22:14:17 EST
On Tue, Nov 28, 2000 at 11:41:36PM -0500, Paul D. Smith wrote:
Hi Paul,
> OK, after the last three patches I have only one problem left with my
> DTD validation using xinclude.
thanks a lot for the patches. I'm afraid I will have to change
the second one since it breaks binary compatibility. I didn't had
time yet to merge, but I really appreciate the work you put to track
this down. I will try to integrate this into the next release !
> My stuff all validates correctly, but I get one last error:
>
> No declaration for attribute href on element include
> Document test.xml does not validate against test.dtd
>
> I'm assuming (I haven't delved deeply into this) that this is failing to
> validate the XML_XINCLUDE_START node or something (--debug doesn't
> generate much info for this node type...)
yes very probable
> Superficially, I could just go into the code and have whatever code is
> trying to validate this node skip nodes of these types
> (XML_XINCLUDE_START and XML_XINCLUDE_END) rather than validate them.
>
> However, I wonder if this isn't the wrong approach?
Well the extra "Infoset" items should really be ignored when
validating because the validation step is logically done at parsing
stage.
> After all, this error seems incorrect: href _is_ a valid attribute on an
> include element... in the XInclude DTD. It's just that the validator
> doesn't know that.
Well, the validation has no idea of what an XInclude processing is
so this should really be dropped.
> So, is there something "deeper" than just skipping the XINCLUDE_START
> and XINCLUDE_END nodes that should be done here?
No, this is really the right way to handle those.
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux XML libxml WWW Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind http://www.w3.org/People/all#veillard%40w3.org | RPM badminton Kaffe ---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Wed Dec 06 2000 - 09:43:47 EST