Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-663

DOMUtils.cloneNode results in invalid namespace declaration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 1.3.3, 1.3.4
    • 1.4
    • BPEL Runtime
    • None

    Description

      The DOMUtils.cloneNode code doesn't handle default namespace declarations correctly when processing an XQuery result from Saxon.

      For example:

      <ns1:parent xmlns:ns1="abc">
      <ns1:child xmlns="def">
      <ns2:nestedChild xmlns:ns2="def"/>
      </ns1:child>
      </ns1:parent>

      results in:

      <ns1:parent xmlns:ns1="abc">
      <ns1:child xmlns:xmlns="def">
      <ns2:nestedChild xmlns:ns2="def"/>
      </ns1:child>
      </ns1:parent>

      Notice that the default namespace has been rewritten as xmlns:xmlns which is invalid.

      Granted the above example is a bit odd, but strange things can happen when passing nodes in and out of XSLT and XQuery with respect to namespace declarations.

      Attachments

        1. ode1.x-663-v1.txt
          8 kB
          David Carver
        2. ode1.x-663-v2.txt
          4 kB
          David Carver
        3. ode1.x-663-v3.txt
          8 kB
          David Carver
        4. ode1.x-663-v4.txt
          4 kB
          David Carver
        5. ode1.x-663-v5.txt
          4 kB
          David Carver

        Activity

          People

            rrusin Rafal Rusin
            mark.ford Mark Ford
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: