Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2678

LengthUnits being applied to minLength/maxLength facets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.3.0
    • 3.9.0
    • None

    Description

      In a schema, where lengthUnit is 'bits', and encoding='X-DFDL-US-ASCII-7-BIT-PACKED', where we have the following element defined 

      <xs:element name="alpha" dfdl:lengthKind="explicit" dfdl:length="14">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:minLength value="2"/>
            <xs:maxLength value="2"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>

      Daffodil issues  the following warning on compiling the schema with save-parser or using api compilation

      java.lang.AssertionError: Schema Definition Warning: Explicit dfdl:length of 14 is out of range for facet maxLength='2'.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              okilo@tresys.com Olabusayo Kilo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: