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

[jira] [Resolved] (DAFFODIL-2814) leadingSkip property is ignored on enumerations

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

Steve Lawrence resolved DAFFODIL-2814.
--------------------------------------
    Fix Version/s: 3.5.0
       Resolution: Not A Bug

This is working as intended, the dfdl:leadingSkip proprety should be ignored. Any physical properties must be put on the repType. There should be a warning however. See DAFFODIL-2817 for that issue.

> leadingSkip property is ignored on enumerations
> -----------------------------------------------
>
>                 Key: DAFFODIL-2814
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2814
>             Project: Daffodil
>          Issue Type: New Feature
>          Components: Front End
>    Affects Versions: 3.5.0
>            Reporter: Josh Adams
>            Priority: Major
>             Fix For: 3.5.0
>
>
> The leadingSkip property is being ignored when placed on an enumeration type - ex:
> <simpleType name="YesNoEnum" dfdlx:repType="my:bit">
>   <restriction base="xs:string">
>     <enumeration value="no" dfdlx:repValues="0"/>
>     <enumeration value="yes" dfdlx:repValues="1"/>
>   </restriction>
> </simpleType>
> <element name="yesno" type="YesNoEnum" dfdl:leadingSkip="2"/>
> The leading skip is ignored, so we end up looking at the incorrect location in the data.



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