[ 
https://issues.apache.org/jira/browse/DAFFODIL-2146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brandon Sloane updated DAFFODIL-2146:
-------------------------------------
    Attachment: a.dfdl.xsd

> 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
>            Priority: Major
>         Attachments: a.dfdl.xsd
>
>
> 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