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

Incorrectly recognize keyset-value transform as identity transfrom

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • Front End
    • None

    Description

      Bug in the new enum support system.

      The schema: 

      <xs:simpleType name="f" dfdl:repType="xs:int">
      <xs:restriction base="xs:string">
      <xs:enumeration value="one" dfdl:repValues="1"/>
      <xs:enumeration value="zero" dfdl:repValues="0"/>
      </xs:restriction>
      </xs:simpleType>

      <xs:element name="a" type="xs:string" dfdl:inputValueCalc="{dfdl:inputTypeCalcString('tns:f',0)}" />

      fails to compile with:

      Schema Definition Error: Identity transform requires that the basetype and reptype have a common primitive type

       

      Attachments

        1. a.dfdl.xsd
          0.9 kB
          Brandon Sloane

        Activity

          People

            brandon.sloane Brandon Sloane
            brandon.sloane Brandon Sloane
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: