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 2022/03/13 04:30:00 UTC
[jira] [Comment Edited] (DAFFODIL-2671) support minInclusive maxInclusive on date/time/dateTime
[ https://issues.apache.org/jira/browse/DAFFODIL-2671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17505387#comment-17505387 ]
Mike Beckerle edited comment on DAFFODIL-2671 at 3/13/22, 4:29 AM:
-------------------------------------------------------------------
This works, which shows this is something about facet processing:
{code:java}
<simpleType name="msDateTime">
<annotation>
<appinfo source="http://www.ogf.org/dfdl/">
<dfdl:assert>
{ . le xs:dateTime("2094-12-31T23:59:59") and . ge xs:dateTime("1995-01-01T00:00:00") }
</dfdl:assert>
</appinfo>
</annotation>
<restriction base="xs:dateTime">
<!-- DAFFODIL-2671 prevents this check
<maxInclusive value="2094-12-31T23:59:59"/>
<minInclusive value="1995-01-01T00:00:00"/>
-->
</restriction>
</simpleType>
{code}
was (Author: mbeckerle):
This works, which shows this is something about facet processing:
```
<simpleType name="msDateTime">
<annotation>
<appinfo source="http://www.ogf.org/dfdl/">
<dfdl:assert>{ . le xs:dateTime("2094-12-31T23:59:59") and
. ge xs:dateTime("1995-01-01T00:00:00") }</dfdl:assert>
</appinfo>
</annotation>
<restriction base="xs:dateTime">
<!-- DAFFODIL-2671 prevents this check
<maxInclusive value="2094-12-31T23:59:59"/>
<minInclusive value="1995-01-01T00:00:00"/>
-->
</restriction>
</simpleType>
```
> support minInclusive maxInclusive on date/time/dateTime
> -------------------------------------------------------
>
> Key: DAFFODIL-2671
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2671
> Project: Daffodil
> Issue Type: New Feature
> Components: Back End
> Affects Versions: 3.2.1
> Reporter: Mike Beckerle
> Priority: Minor
>
> I am trying to use this simple type:
> ```<simpleType name="msDateTime">
> <restriction base="xs:dateTime">
> <maxInclusive value="2094-12-31T23:59:59"/>
> <minInclusive value="1995-01-01T00:00:00"/>
> </restriction>
> </simpleType>```
> I get this diagnostic message:
> ```SchemaDefinitionError: Schema Definition Error: Failed to parse (1995-01-01T00:00:00) to dateTime (uuuu-MM-dd'T'HH:mm:ss.SSSSSSxxx) due to Character array is missing "e" notation exponential mark. (after Unparseable date: "1995-01-01T00:00:00").```
> The other facets (minExclusive, maxExclusive), and the other calendar types (date, time) should also be tested.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)