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

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


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • 2.0.0
    • Back End, Front End
    • None

      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>

      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.

              dthompson David Thompson
              mbeckerle.dfdl Mike Beckerle
              0 Vote for this issue
              2 Start watching this issue