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 2019/05/08 14:44:01 UTC

[jira] [Updated] (DAFFODIL-2122) default="0|1" causes exception for xs:boolean types

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

Steve Lawrence updated DAFFODIL-2122:
-------------------------------------
    Affects Version/s: 2.3.0
          Component/s:     (was: DFDL Schemas)
                       Front End
              Summary: default="0|1" causes exception for xs:boolean types  (was: DFDL Editor throws error when running test)

This looks to be an error related {{default="0"}} for xs:boolean elements. We currently only support values of "true" and "false". Presumably the input element never references a boolean element with a default set to "0", so you only see the error on the output element. I get import errors related to tpfbase.lib.dfdl.xsd, so can't say for sure if this is the case or not, but it seems likely.

Note that this is also probably an issue with defaultValue in {{dfdl:defineVariable}}.

A temporary workaround would be to change {{default="0"}} to {{default="false"}} for boolean elements.

> default="0|1" causes exception for xs:boolean types
> ---------------------------------------------------
>
>                 Key: DAFFODIL-2122
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2122
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Front End
>    Affects Versions: 2.2.0, 2.3.0
>            Reporter: Susmita
>            Priority: Major
>         Attachments: dfdl editor error box.png, dfdl editor error.png, temp.test.dfdl.xsd
>
>
> Hi Team,
> We are using daffodil 2.2.0. for one of our schema file we are getting some errors if we change the root node.
> for the attached schema file there is 2 root nodeĀ 
>  # Input
>  # Output
> with root selected as Input we are getting the correct test result but If change the root node to Output we are getting errors from daffodil's code.



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