[ 
https://issues.apache.org/jira/browse/XERCESC-1655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Scott Cantor resolved XERCESC-1655.
-----------------------------------
    Resolution: Fixed

> Incorrect UPA violation error with xs:any and ##other
> -----------------------------------------------------
>
>                 Key: XERCESC-1655
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1655
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (XML Schema)
>    Affects Versions: 2.7.0
>            Reporter: John Snelson
>            Assignee: Boris Kolpackov
>            Priority: Major
>             Fix For: 3.0.0
>
>
> We are seeing a Unique Particle Attribution violation error occur on a schema 
> which I am sure shouldn't have this problem. The error is:
> Parse error in document at line, 1, char 417. Parser message: Complex type 
> 'dataType' violates the Unique Particle Attribution rule in its components 
> '##other' and 'data'
> The schema that causes this is:
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="info:rfa/rfaRegistry/xmlSchemas/iwsaDeposit" 
> xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> xmlns="info:rfa/rfaRegistry/xmlSchemas/iwsaDeposit">
>   <xs:element name="data" type="dataType"/>
>   <xs:complexType name="dataType">
>     <xs:sequence>
>       <xs:choice>
>         <xs:any namespace="##other" processContents="lax"/>
>         <xs:element name="data" type="xs:string"/>
>       </xs:choice>
>     </xs:sequence>
>   </xs:complexType>
> </xs:schema>
> The instance document that causes this:
> <?xml version="1.0" encoding="UTF-8"?>
> <da:data xmlns:da="info:rfa/rfaRegistry/xmlSchemas/iwsaDeposit"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:bl="blah"
> xsi:schemaLocation="info:rfa/rfaRegistry/xmlSchemas/iwsaDeposit
> D:/Data/eclipse/workspace/GDFRPrototype/xml/xsd/iwsaDeposit-2_TEST.xsd
> info:rfa/rfaRegistry/xmlSchemas/adminData
> D:/Data/eclipse/workspace/GDFRPrototype/xml/xsd/adminData.xsd">
>   <bl:other>Things</bl:other>
> </da:data>
> My understanding of W3C XML Schema is that the "##other" should not overlap 
> with the element declared in the schema's target namespace, and that 
> therefore this schema does not violate the UPA rule.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to