Folks,

I have a DOMBuilder that I have created with fgDOMValidation,
fgXercesSchema and fgXercesSchemaFullChecking all set to true. I have a
handler set to which overrides the handleError method to catch all
errors during grammar loading. 

So far I observed the following things :

1) Lack of include file. While I get a nice complaint is the initial
schema file does not exist, if it includes a file :
    <include schemaLocation="a.xsd"/>
and a.xsd does not exist, I get no complaints.

2) Lack of elements. The schemas I have inherited tend to be defined as
:
   <xs:element name = "a">
      <xs:complexType>
         <xs:sequence>
            <xs:element ref="b">
            <xs:element ref="c">
         </xs:sequence>
      </xs:complexType>
   </xs:element>
   <xs:element name="b" type="xs:boolean"/>
   <xs:element name="c" type="xs:integer"/>

All well and good. But if I comment out the element b and c definitions,
but leave in the element refs in the definition of a, I get no grammar
loading complaints, although I do get a error during xml parsing saying
b is not defined.

Now for both of the above I would expect to get grammar load complaints,
and do not. The question is, is this expectation of mine reasonable ?

Thanks,
Dale Pennington



    

Reply via email to