Steve Lawrence created DAFFODIL-2033:
----------------------------------------
Summary: dfdl:defineVariable defaultType does not properly convert
value
Key: DAFFODIL-2033
URL: https://issues.apache.org/jira/browse/DAFFODIL-2033
Project: Daffodil
Issue Type: Bug
Components: Middle "End"
Affects Versions: 2.3.0
Reporter: Steve Lawrence
The defaultValue attribute in the dfdl:defineVariable element is allowed to
contain either a DFDL expression or a logical value, for example, the following
are equivalent
{code:java}
<dfdl:defineVariable name="foo" type="xs:boolean" defaultValue="false" />
<dfdl:defineVariable name="foo" type="xs:boolean" defaultValue="{ fn:false() }"
/>{code}
However, Daffodil always treats the defaultValue as an expression, assuming
curly braces if they are missing. So in the case ofthe logical value, Daffodil
tries to set the default value to
{code:java}
{ false }{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)