[Bug 5631] rename and namespace inheritance

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5631

           Summary: rename and namespace inheritance
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Update Facility
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


The specification of upd:rename() says (in 1.d and similarly in 2.e) "The
namespaces property of $target is modified to include a namespace binding
derived from $newName, if this binding did not already exist."

Normally, and by default, when we create a namespace binding on an element then
the same namespace binding is created on all its children, recursively, unless
they carry an explicit redeclaration of that namespace prefix. We don't seem to
be doing that here. Is this intentional? I would have thought it made sense to
propagate the new namespace binding to descendants, or not, based on the
"inherit namespace" option in the static context.

Received on Monday, 7 April 2008 15:35:56 UTC