Uploaded image for project: 'JaxMe'
  1. JaxMe
  2. JAXME-65

mixed="true" attribute on complexTypes unsupported?

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.5
    • 0.6
    • JaxMe Core
    • None
    • All

    Description

      Hi All,

      Hope all is going well.

      Using the following XSD snippet:

      <xs:element name="text">
      <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="1">
      <xs:element ref="problem"/>
      <xs:element ref="reason"/>
      <xs:element ref="solution"/>
      </xs:choice>
      .... attribute definitions ....
      </xs:complexType>
      </xs:element>

      it seems that the "mixed" attribute is ignored as the following

      <text>
      some text
      </text>

      Doesn't parse correctly. However

      <text>
      <problem>some text</problem>
      </text>

      Does.

      My input XML document and XSD schema validates correctly using xmllint - is "mixed=true" a bug or known issue?

      Cheers,

      Marcus

      Attachments

        1. JAXME-65.patch
          11 kB
          Jochen Wiedmann

        Activity

          People

            jochen@apache.org Jochen Wiedmann
            crafterm@apache.org Marcus Crafter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment