Hi, this is a newly fixed bug. It should be ok if you download the latest
version from CVS. But keep in mind that the support for <any> is not
finished yet.

Hope this helps,
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
[EMAIL PROTECTED]



                                                                                
                                        
                    Torkel Dominique                                            
                                        
                    <[EMAIL PROTECTED]       To:     [EMAIL PROTECTED]          
                            
                    otsip.com>                cc:                               
                                        
                                              Subject:     "any" element with 
"##any" namespace declaration             
                    05/14/2001 10:20 AM                                         
                                        
                    Please respond to                                           
                                        
                    xerces-j-user                                               
                                        
                                                                                
                                        
                                                                                
                                        



Hi,

Just downloaded Xerces 1.3.1 and discovered a possible bug in the
treatment
of "any" element declarations. I have declared the following element (in
"myTargetNamespace"):

<element name="testAnyElement">
 <complexType>
  <sequence>
   <any minOccurs="0"/>
  <sequence>
 </complexType>
</element>

and the instance element looks like this:

<testAnyElement>
 <elementFromAnotherNamespace/>
</testAnyElement>

And the parser says:

The content of element type "elementFromAnotherNamespace" must match
"(##any:uri=myTargetNamespace?)".

But according to the spec, the default value of the namespace attribute of
the any element should be "##any". I have also tried with

<any namespace="##any" minOccurs="0"/>

but with the same result.

When I try

<any namespace="##other" minOccurs="0"/>

, on the other hand, it works fine.


/Torkel Dominique



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to