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

Steve Lawrence resolved DAFFODIL-1965.
--------------------------------------
    Resolution: Fixed

Fixed inĀ 22ac86b617280cdcaf532536ca66116e44da7912

> dfdl:assert and dfdl:discriminator "message" attribute does not work for DFDL 
> Expressions
> -----------------------------------------------------------------------------------------
>
>                 Key: DAFFODIL-1965
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1965
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End, Front End
>    Affects Versions: 2.1.0
>            Reporter: Steve Lawrence
>            Assignee: Steve Lawrence
>            Priority: Major
>              Labels: beginner
>             Fix For: 2.3.0
>
>
> The message attribute for dfdl:assert and dfdl:discriminator is allowed to be 
> a DFDL expression, for example:
> {code:java}
> <dfdl:assert message="{ fn:concat('unknown case ', ../data1) 
> }">...</dfdl:assert>{code}
> However, we currently treat the message as a string, and never evaluate the 
> expression, even if it contains braces. To resolve this issue, we should 
> create a new Evaluatable for the message attribute and pass that into the 
> assert/discriminator parsers.



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

Reply via email to