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

##targetNamespace results in a bogus UPA violation error

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.7.0
    • None
    • None
    • all

    Description

      The following schema fragment:

      <complexType name="AnyTargetNamespace">
      <sequence maxOccurs="unbounded">
      <element name="apple" type="string"/>
      <any namespace="##targetNamespace" processContents="skip" minOccurs="1" maxOccurs="unbounded"/>
      </sequence>
      </complexType>

      causes Xerces-C++ to fail with the following (bogus) error:

      :0:0: error: Complex type 'AnyTargetNamespace' violates the Unique Particle Attribution rule in its components 'apple' and '##any'

      There is no UPA violation in the above fragment. Xerces-J, Jing and MSV agree.

      Attachments

        1. bug.xsd
          0.4 kB
          Boris Kolpackov

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bsk Boris Kolpackov
            bsk Boris Kolpackov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment