Brandon Sloane created DAFFODIL-2146:
----------------------------------------

             Summary: Incorrectly recognize keyset-value transform as identity 
transfrom
                 Key: DAFFODIL-2146
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2146
             Project: Daffodil
          Issue Type: Bug
          Components: Front End
    Affects Versions: 2.4.0
            Reporter: Brandon Sloane
            Assignee: Brandon Sloane


Bug in the new enum support system.

The schema: 
{quote}<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)}" />
{quote}
fails to compile with:
{quote}Schema Definition Error: Identity transform requires that the basetype 
and reptype have a common primitive type
{quote}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to