W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2007

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

From: <bugzilla@wiggum.w3.org>
Date: Tue, 11 Dec 2007 14:24:39 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1J262J-00030m-1H@wiggum.w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:22 GMT