[
https://issues.apache.org/jira/browse/XERCESC-1758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Boris Kolpackov updated XERCESC-1758:
-------------------------------------
Affects Version/s: (was: 2.8.0)
2.9.0
3.0.0
I was investigating the same problem today. The reason it fails is that
Xerces-C++ uses the old interpretation for ##other. Before, in a schema with
target namespace, it used to mean all other namespaces and the no-namespace
case. The spec was changed to exclude the no-namespace case. The fragment that
is causing the UPA looks like this:
<xs:group name="foreignElm">
<xs:choice>
<xs:any namespace="##other" processContents="skip"/>
<xs:any namespace="##local" processContents="skip"/>
</xs:choice>
</xs:group>
We need to chage this in two places: in the code that checks for UPA and in the
code that actually validates instances. It would also be nice to figure out why
the error message says ##any instead of ##local, perhaps we have a bug there
that will affect diagnostics of reals UPAs.
> Incorrect "Unique Particle Attribution rule in its components '##other' and
> '##any'" with FAST Schema definition
> -----------------------------------------------------------------------------------------------------------------
>
> Key: XERCESC-1758
> URL: https://issues.apache.org/jira/browse/XERCESC-1758
> Project: Xerces-C++
> Issue Type: Bug
> Components: Validating Parser (XML Schema)
> Affects Versions: 3.0.0, 2.9.0
> Environment: Linux 2.6.9-55.ELsmp #1 SMP x86_64 GNU/Linux
> Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
> Xerces-C++ Version 2.8.0 compiled with g++ 4.2.1 64 bits
> Reporter: Fernando Jeronymo
> Attachments: fast.xsd, fastExample.xml
>
>
> When attempting to validate an XML file with the following schema (from
> http://www.fixprotocol.org/documents/3066/FAST%20Specification%201%20x%201.pdf
> [Appendix 2 W3C XML Schema (Non-Normative)] )
> I get the following error from Xerces-C:
> Error at file fastapi.xml, line 2, char 201
> Message: Complex type '__AnonC13' violates the Unique Particle Attribution
> rule in its components '##other' and '##any'
> However, other tools (XMLSpy, Xerces-J) validate the schema correctly.
> I have attached both XSD and XML files that were used to test/reproduce the
> issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]