Re: [xml] Multiple XML Schema Includes



On Fri, Dec 12, 2003 at 03:57:50PM -0500, Adam Trachtenberg wrote:
I'm trying to validate a file against an XML Schema that includes the 
same schema file multiple times. libxml2 2.6.3 considers this a schema 
redefinition error. However, I believe this is a bug.

According the the spec, you are explicitly allowed to reinclude a 
schema. See http://www.w3.org/TR/xmlschema-1/#compound-schema, 
specifically the part at the bottom that says:

NOTE: The above is carefully worded so that multiple <include>ing of 
the same schema document will not constitute a violation of clause 2 
of Schema Properties Correct (§3.15.6), but applications are allowed, 
indeed encouraged, to avoid<include>ing the same schema document more 
than once to forestall the necessity of establishing identity 
component by component.

While I take their encouragement to heart, I'm merely validating 
against a third-party schema here, so I'm unable to alter the schema 
design.

Do other people agree this is a bug in libxml2 or am I misreading the 
spec? I am far from an XML Schema expert.

  I'm not an XML Schema expert either <grin/>. Post the full schemas
and instance examples in a bugzilla report please,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]