You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Steve Lawrence (JIRA)" <ji...@apache.org> on 2018/09/13 14:18:00 UTC

[jira] [Assigned] (DAFFODIL-1965) dfdl:assert and dfdl:discriminator "message" attribute does not work for DFDL Expressions

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

Steve Lawrence reassigned DAFFODIL-1965:
----------------------------------------

    Assignee: Steve Lawrence

> 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)