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

Roundtrip: complex namespaces result in non-unparsable infosets

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • None
    • None
    • None

      See tests that have roundTrip="false" in namespaces.tdml. All of these tests should round trip, but the xml namespaces created in the infoset are incorrect. For example, the namespaces_qnames test result in the following infoset:

      <e xmlns:ex2="http://example.com/1" xmlns="http://example.com/1">
        <len>5</len>
        <num>12345</num>
      </e>

      In this example, num should be NoNamespace because it's defined as a local element and elementFormDefault="unqualified", but because xmlns is defined in the infoset, it is in the ex2 namespace. This schema should instead look something like this:

      <ex:e xmlns:ex2="http://example.com/1">
        <ex2:len>5</ex2:len>
        <num>12345</num>
      </ex2:e>

      Numerous other tests in the namespaces.tdml file exhibit simliar behaviors, and so roundTrip is set to false.

              dthompson David Thompson
              slawrence Steve Lawrence
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: