[Bug 5316] [UPD] Rename: default namespace for attributes

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

           Summary: [UPD] Rename: default namespace for attributes
           Product: XPath / XQuery / XSLFO / XSLT
           Version: Last Call drafts
          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 expression

for $a in //@PRICE return
  rename $a as "COST"

is currently defined to treat COST as a name in the default namespace for
elements and types, despite the fact that it is clearly being used as an
attribute name. Presumably the system is supposed to invent a namespace prefix,
since the name clearly cannot be used unprefixed (or is this supposed to lead
to a data model consistency error?) Either way, this seems likely to cause
unwelcome surprises.

Received on Tuesday, 11 December 2007 14:24:45 UTC