Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-677

Daffodil fails to recongize unsignedInt

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocking Blocking
    • s10
    • None
    • None
    • None
    • Win 7, v 0.9

      Daffodil does not appear to recognize what an unsignedInt is.

      This code

      <xsd:element name="Day" dfdl:length="2" dfdl:lengthKind="explicit" dfdl:textNumberPattern="#0">
      <xsd:simpleType>
      <xsd:restriction base="xsd:unsignedInt">
      <xsd:maxInclusive value="31"/>
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>

      on this input

      15

      creates this error message:

      2013-04-29 14:16:52:161 edu.illinois.ncsa.daffodil.compiler.Compiler Error [Schema Definition Error: Expected an unsigned int for this facet. Schema
      context: element.Day. Location in file:/C:/Users/jgarriss/Documents/DFDL_Schemas_Email/02_Message_Headers/Date.xsd.]

      Which appears to be telling me that 15 is not an unsigned int.

      Note: this bug appears in the CLI but not the JAPI, which is odd.

              twise Taylor Wise
              james.garriss James Garriss
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: