Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5357

ADB can't generate codes for XSD which has SimpleContent restricted from a ComplexType.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.6, 1.6.2
    • Fix Version/s: 1.6.3, 1.7.0
    • Component/s: adb
    • Labels:
      None

      Description

      See following example schema.

      <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://sample">
      <xs:complexType name="limitedString">
      <xs:simpleContent>
      <xs:restriction base="ns:rating">
      <xs:minLength value="2"/>
      <xs:maxLength value="4"/>
      <xs:pattern value="([a-d])*" />
      </xs:restriction>
      </xs:simpleContent>
      </xs:complexType>
      <xs:complexType name="rating">
      <xs:simpleContent>
      <xs:restriction base="ns:anyString">
      <xs:minLength value="2"/>
      <xs:maxLength value="8"/>
      <xs:pattern value="([a-z])*" />
      </xs:restriction>
      </xs:simpleContent>
      </xs:complexType>
      <xs:complexType name="anyString">
      <xs:simpleContent>
      <xs:extension base="xs:string" />
      </xs:simpleContent>
      </xs:complexType>
      </xs:schema>

        Attachments

          Activity

            People

            • Assignee:
              sagara Sagara Gunathunga
              Reporter:
              sagara Sagara Gunathunga

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment