#51 Undeclared namespace in DOMSource

v6.5
closed
Michael Kay
3
2012-10-08
2002-01-07
Michael Kay
No

When a DOMSource is used as Saxon input, and the DOM
is created programmatically, then it can happen that
element or attribute names use a namespace URI for
which there is no namespace declaration attribute.
Saxon handles this by supplying a namespace
declaration in the case where the element or attribute
name contains a colon; but it fails to do so where an
element is in a non-null namespace but uses no
namespace prefix.

Source code fixed in 7.0 branch (not yet in 6.5
branch). Module DOMDriver.java. Tested with Crimson
(new test case in TraxExamples.java -
exampleNewDOMSerializer.

Present in 6.5, 7.0, and all previous releases.

Reported by Elliotte Rusty Harold on xml-dev, in the
context of an IdentityTransformation, but it can apply
equally to any transformation using a DOMSource as
input.

MK

Discussion

  • Michael Kay
    Michael Kay
    2002-02-20

    Logged In: YES
    user_id=251681

    Cleared in 6.5.1, still present in 7.0

     
  • Michael Kay
    Michael Kay
    2002-04-30

    Logged In: YES
    user_id=251681

    Fixed in 7.1