Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1758

Incorrect "Unique Particle Attribution rule in its components '##other' and '##any'" with FAST Schema definition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 3.0.0
    • None
    • 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

    Description

      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.

      Attachments

        1. fastExample.xml
          1 kB
          Fernando Jeronymo
        2. fast.xsd
          11 kB
          Fernando Jeronymo

        Issue Links

          Activity

            People

              bsk Boris Kolpackov
              fjeronymo Fernando Jeronymo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: