Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-1852

Data type not available in infoset events

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.0
    • None
    • API, Back End
    • None

    Description

      Daffodil doesn't pass the datatype for a simple value as part of the StartElement or StartArray events.

      This means that you can't, for example, tell whether to create the JSON member as a string or as a number (i.e. whether to include the "" or not).

      In XML output, this prevents putting an xsi:type="..." element on the simple types, which is sometimes of value.

      Daffodil ships a JSON outputter, but it just renders everything as a string, and the XML outputter doesn't add xsi:type attributes.

      The infoset datatype member is required part of the DFDL infoset according to the spec, so the lack of this information is non-conformance to the spec.

      The xsi:type attribute is planned (JIRA DFDL-182 and DFDL-1633 also) - it would be optional, for the XML outputters, and would either be checked or ignored by XML inputters.

      The JSON inputters/outputters would have to be adapted to JSON that does not have the "..." around everything.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: