You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by sa...@ca.ibm.com on 2001/06/18 18:56:59 UTC

Re: [PATCH] [V 1.x.x] bug with empty Type def in different Schema

Hi Klaus,

Thanks for your patch. I've checked it in.

Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
sandygao@ca.ibm.com



                                                                                                                     
                    "Kiehne, Z 198,                                                                                  
                    BN"                    To:     "'xerces dev'" <xe...@xml.apache.org>                      
                    <K.Kiehne@deutsc       cc:                                                                       
                    hepost.de>             Subject:     [PATCH] [V 1.x.x] bug with empty Type def in different       
                                            Schema                                                                   
                    06/18/2001 11:18                                                                                 
                    AM                                                                                               
                    Please respond                                                                                   
                    to xerces-j-dev                                                                                  
                                                                                                                     
                                                                                                                     



Hi,

I've found a bug in Xerces (v 1.3.1) using schema validation and two
schemas.
This bug exists also in V1.4.0 and seems still to exist in the most recent
version of the code in the CVS repository.

Bug description by example :

I've got two schemas the first schema holds type definitions, the second
uses these types and defines real elements. The defined types are complex
types which only define some attributes (so they are empty by definition).
It depends on the definition and usage order, whether validation works.
Included are one type Schema "MyTypes.xsd" and two data Schemas with
instances.
"MyData1.xsd" with instance "sample1.xml" gives errors while "MyData2.xml"
with "sample2.xml" validates fine. The only difference is the defined order

of elements. This can be tested by using SaxCount from the samples with
validating enabled:

java -cp xerces.jar;xercesSamples.jar sax.SAXCount -v sample1.xml

I've fixed this problem for Xerces 1.3.1 and provide a suggested fix
(as diff.txt) for the current CVS version. This fix is untested but my
example could be included to the testcases.

Please give short feedback when integrating this Patch.

TIA
Klaus


(See attached file: MyTypes.xsd)(See attached file: MyData2.xsd)(See
attached file: MyData1.xsd)(See attached file: sample1.xml)(See attached
file: sample2.xml)(See attached file: diff.txt)
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org