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

expressions cannot use default namespace properly in paths

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: s5
    • Fix Version/s: s10
    • Component/s: Back End
    • Labels:
      None

      Description

      Even if a TDML file has setup a default namespace to be the same as the target namespace, an expression in the schema still has to use prefix-qualified names for referring to every element.

      E.g., ../ex:foo/ex:bar

      when ../foo/bar should work if the default namespace is the same as for the ex prefix.

      To test this, take any test, e.g., test_repeatFlags3, and change the discriminator expression to remove the ex: prefixes. Add a xmlns="http://example.com" at the top of the TDML file.

      Voila, it fails. Annoyingly and silently, because ../foo when there is no default namespace looks for peer element foo but doesn't look in the right namespace, so returns "empty node list", which is legal, but useless.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              jchab Jessie Chab
              Reporter:
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Tasks