You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Matthew Berry <ma...@apt.com> on 2004/09/17 13:23:12 UTC
loadGrammar()
*/ Why when I call loadGrammar() and there is an problem with the schema
file there is no explicit error (or warning) propagated out?
For example, although a GC_ExistingGrammar exception was being thrown in
GrammarResolver it dissappears. It is only possible to check that the return
value is non-null.
*/ I'm adding a abstract complexType with the 1st call to
DOMBuilder::loadGrammar() under a base namespace. In a second call to
loadGrammar(), I add a derived complexType in a different namespace. The
<xsd:extension> refers to the base namespace.
Then when I parse my XML document which contains the an element of the
derived type (using xsi:type), in the SchemaValidator sourcecode its is
apparent that my "derived" type has no base .
Is this the correct behaviour? NOTE: I'm not using <xsd:include> or
<xsd:import> in the second schema, because I thought I would need to add an
entity resolver. Is there a better way to achieve what I'm trying to do?
Thanks for your help
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org