[xml] Fix for xinclude with DTD

Date view Thread view Subject view Author view

From: Paul D. Smith (pausmith@nortelnetworks.com)
Date: Tue Nov 28 2000 - 15:06:16 EST


Here's a patch to valid.c which allows the DTD validation to ignore the
INCLUDE START and INCLUDE END elements.

There is still more broken with xinclude vs. DTD's; I'm continuing to
look at it.

--- valid.c-dist Tue Nov 7 08:19:11 2000
+++ valid.c Tue Nov 28 14:57:24 2000
@@ -3296,6 +3296,9 @@
                 return(0);
             }
             return(1);
+ case XML_XINCLUDE_START:
+ case XML_XINCLUDE_END:
+ return(1);
         case XML_CDATA_SECTION_NODE:
         case XML_ENTITY_REF_NODE:
         case XML_PI_NODE:

-- 
-------------------------------------------------------------------------------
 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 : Tue Nov 28 2000 - 15:44:13 EST