Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1675

discriminator expression - infoset element not found is SDE, but should be PE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Back End, Front End
    • Labels:
      None

      Description

      When a discriminator is evaluated, that evaluation occurs in a special mode so that you can write this sort of thing:

      <element ref="foo">
          <dfdl:discriminator>{ ../foo/bar eq 2 }</dfdl:discriminator>
      </element>

      Outside the context of a discriminator, if ../foo/bar doesn't exist that's a runtime SDE. Fatal.

      Inside the context of a discriminator, if that doesn't exist, it's a PE, and the disriminator simply is false. But it's not fatal.

      The bug is that Daffodil is always issuing a runtime SDE for this. We need this behavior for discriinators.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              dthompson David Thompson
              Reporter:
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Tasks

                  Progress: 
                   0/0