xerces-j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xerces-j-...@xml.apache.org
Subject [jira] Closed: (XERCESJ-1010) UPA not detected
Date Mon, 20 Sep 2004 15:58:38 GMT
Message:

   The following issue has been closed.

   Resolver: Sandy Gao
       Date: Mon, 20 Sep 2004 8:58 AM

Fxied in CVS.
There is a list of complex types for which we need to check UPA. Somehow the entry for the
"root" type was overwritten by the "test" type, so we were not checking UPA for the "root"
type.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESJ-1010

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESJ-1010
    Summary: UPA not detected
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Xerces2-J
 Components: 
             XML Schema Structures
   Versions:
             2.6.2

   Assignee: Sandy Gao
   Reporter: George Cristian Bina

    Created: Mon, 20 Sep 2004 8:02 AM
    Updated: Mon, 20 Sep 2004 8:58 AM

Description:
Xerces reports the following document valid:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.example.com/test"
     xmlns="http://www.example.com/test"
     xmlns:xs="http://www.w3.org/2001/XMLSchema">

     <xs:element name="root">
         <xs:complexType>
             <xs:sequence>
                 <xs:element ref="Study" minOccurs="0" 
maxOccurs="unbounded"/>
                 <xs:any namespace="##any" minOccurs="0" 
maxOccurs="unbounded"/>
             </xs:sequence>
         </xs:complexType>
     </xs:element>

     <xs:element name="Study"/>

     <xs:element name="test">
         <xs:complexType>
             <xs:sequence>
                 <xs:any namespace="##other"/>
             </xs:sequence>
         </xs:complexType>
     </xs:element>
</xs:schema>

If the test element is removed or placed before the root element Xerces reports:

SystemID: F:\test\test.xsd
Location: 7:25
Description: E cos-nonambig: "http://www.example.com/test":Study and WC[##any] (or elements
from their substitution group) violate "Unique Particle Attribution". During validation against
this schema, ambiguity would be created for those two particles.
URL: http://www.w3.org/TR/xmlschema-1/#cos-nonambig

The problem seems to be related with ##other because if ##any is 
specified instead the error is reported.

See more details about this issue at http://lists.w3.org/Archives/Public/xmlschema-dev/2004Sep/0050.html
and the other messages in the thread.

Best Regards,
George


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org


Mime
View raw message