W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2001

Default namespaces in QNames

From: Evan Lenz <elenz@xyzfind.com>
Date: Sun, 11 Feb 2001 09:41:58 -0800 (PST)
To: xsl-list@lists.mulberrytech.com
Cc: xsl-editors@w3.org
Message-ID: <Pine.LNX.4.10.10102110931200.31383-100000@perv.xyzfind.com>

Contradiction in the XSLT spec?

From http://www.w3.org/TR/xslt#qname

"The default namespace is not used for unprefixed names."

Yet...

From http://www.w3.org/TR/xslt#section-Creating-Elements-with-xsl:element

"If the namespace attribute is not present then the QName is expanded into
an expanded-name using the namespace declarations in effect for the
xsl:element element, including any default namespace declaration."

Also, from http://www.w3.org/1999/11/REC-xslt-19991116-errata/#E7

"If there is a default namespace in scope, then it is used to expand an
unprefixed QName [that's the argument of element-available()]"

So, should the general section on QNames be qualified to account for the
cases where the default namespace *is* used?

Evan Lenz
XYZFind Corp.
Received on Sunday, 11 February 2001 12:42:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:52 GMT