[
https://issues.apache.org/jira/browse/DAFFODIL-2035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Lawrence resolved DAFFODIL-2035.
--------------------------------------
Resolution: Fixed
Fixed in commit da876398ff180e7c6f00cec8c9f2d3c90780414b
> prefixLengthType and element lengthUnits only needs to be the same when
> prefixIncludePrefixLength
> -------------------------------------------------------------------------------------------------
>
> Key: DAFFODIL-2035
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2035
> Project: Daffodil
> Issue Type: Bug
> Components: Front End
> Reporter: Steve Lawrence
> Assignee: Steve Lawrence
> Priority: Major
> Fix For: 2.3.0
>
>
> Section 12.3.4 of the DFDL says:
> {quote}If the prefix type is dfdl:lengthKind 'implicit' or 'explicit' then
> the dfdl:lengthUnits properties of both the prefix type and the element must
> be the same.{quote}
> This restriction was implemented as part of DAFFODIL-114. However, it was
> discovered that the Errata that led to this part of the spec was:
> {quote}2.76. Section 12.3.4. When property prefixIncludesPrefixLength is
> ‘yes’ there are some restrictions that need to be added to enable reliable
> lengths to be calculated: - If the prefix type is lengthKind 'implicit' or
> 'explicit' then the lengthUnits properties of both the prefix type and the
> element must be the same.{quote}
> It seems this errata was not fully merged into the spec.
> I believe this shoudl already work if we just modify the restriction to apply
> only when prefixIncludesPrefixLength="yes". To to make this change and add
> tests to verify.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)