Brandon Sloane created DAFFODIL-2041:
----------------------------------------

             Summary: Parse error on if statements in expressions
                 Key: DAFFODIL-2041
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2041
             Project: Daffodil
          Issue Type: Bug
    Affects Versions: 2.1.0
            Reporter: Brandon Sloane
         Attachments: test.dfdl.xsd

In complex dfdl expressions, if statements do not get processed correctly 
without extraneus parenthesis.

The following expressions produces an error:

    \{ 1 + if(fn:true()) then 1 else 2 }

[error] Schema Definition Error: Unable to parse expression. Message: `}' 
expected but `t' found
Next: then 1 else 2 }.

In contrast, the following works as expected:

    \{ 1 + (if(fn:true()) then 1 else 2) }

 

Attached is a basic schema demonstrating the issue.



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

Reply via email to