[xml] Last xinclude vs. DTD problem

Date view Thread view Subject view Author view

From: Paul D. Smith (pausmith@nortelnetworks.com)
Date: Tue Nov 28 2000 - 23:41:36 EST


OK, after the last three patches I have only one problem left with my
DTD validation using xinclude.

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...)

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?

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.

So, is there something "deeper" than just skipping the XINCLUDE_START
and XINCLUDE_END nodes that should be done here?

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@baynetworks.com>    HASMAT--HA Software Methods & Tools
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Nov 29 2000 - 00:44:29 EST