You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2023/04/18 17:58:00 UTC

[jira] [Updated] (DAFFODIL-2806) Incorrect SDE on simpleType with lengthKind 'implicit' even if type is used with a computed element

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

Mike Beckerle updated DAFFODIL-2806:
------------------------------------
    Fix Version/s: 3.5.1

> Incorrect SDE on simpleType with lengthKind 'implicit' even if type is used with a computed element
> ---------------------------------------------------------------------------------------------------
>
>                 Key: DAFFODIL-2806
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2806
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Front End
>    Affects Versions: 3.4.0
>            Reporter: Mike Beckerle
>            Priority: Major
>             Fix For: 3.5.1
>
>
> In my types xsd file I have default lengthKind 'implicit' and this type definition:
> ```
> <simpleType name="messageVersion">
>   <xs:restriction base="xs:string">
>     <xs:maxLength value="13"/>
>   </xs:restriction>
> </simpleType>
> ```
> In a different place I have this:
> ```
> <element name="value" type="ms2045:messageVersion"
>    dfdl:inputValueCalc="{
>      if (fn:exists(../vmf_hdr_C)) then ../vmf_hdr_C else ../vmf_hdr_D1
>    }"/>
> ```
> This uses the simpleType definition, but notice this is a computed element (inputValueCalc).
>  
> Hence, all format properties should be ignored, and we should not get an SDE indicating that the value element needs to have both minLength and maxLength and for them to be equal. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)