You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Josh Adams (JIRA)" <ji...@apache.org> on 2019/04/24 14:23:00 UTC

[jira] [Resolved] (DAFFODIL-2108) Facet restrictions not allowed on xs:decimal types with bad errror

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

Josh Adams resolved DAFFODIL-2108.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

This has been fixed in commit ebd28636d915dba407c268f112fb5058974c0d45

> Facet restrictions not allowed on xs:decimal types with bad errror
> ------------------------------------------------------------------
>
>                 Key: DAFFODIL-2108
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2108
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Diagnostics, Front End
>            Reporter: Steve Lawrence
>            Assignee: Josh Adams
>            Priority: Major
>              Labels: beginner
>             Fix For: 2.4.0
>
>
> If you have something like this:
> {code:xml}
> <xs:element name="foo">
>   <xs:simpleType>
>     <xs:restriction base="xs:decimal">
>       <xs:minInclusive value="0" />
>       <xs:maxInclusive value="10" />
>     </xs:restriction>
>   </xs:simpleType>
> </xs:element>
> {code}
> You get the following unhelpful error message:
> {quote}
> [error] Schema Definition Error: checkValueSpaceFacetRange - Unrecognized primitive type: Decimal
> {quote}
> Which prevents you from being able to use facet restrictions on xs:decimal types.
> It looks like we are just missing a case for Decimal in the checkValueSpaceFacetRange function.
> While we're at it, the SDE should also be changed to an Assert, since the catch-all case should never happen except when we have a bug in the logic (like we have now).



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