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

[jira] [Created] (DAFFODIL-2821) Optional Time type element shows up in Infoset

Olabusayo Kilo created DAFFODIL-2821:
----------------------------------------

             Summary: Optional Time type element shows up in Infoset
                 Key: DAFFODIL-2821
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2821
             Project: Daffodil
          Issue Type: Bug
          Components: Back End
    Affects Versions: 3.4.0
            Reporter: Olabusayo Kilo
         Attachments: TestAbsentTime.scala, absentTime.tdml

If I have an element time, with timeType as below.  When there is no time data, rather than being absent, the following is output :
{noformat}
<time>00:00:00</time>{noformat}
{{}}
{code:java}
<element name="time" type="fp:timeType" minOccurs="0"/>

<simpleType name="timeType" dfdl:calendarPatternKind="explicit" dfdl:calendarPattern="HHmm">
  <restriction base="xs:time"/>
</simpleType>{code}



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