W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2003

namespace nodes in element content

From: Per Bothner <per@bothner.com>
Date: Mon, 25 Aug 2003 19:24:46 -0700
Message-ID: <3F4AC4EE.6090803@bothner.com>
To: public-qt-comments@w3.org

Section 3.7.1.3 "Content" of the new XQuery draft does not say what 
happens to namespace nodes in the content of a direct element 
constructor.  There are two choices:

(1) They are allowed, and treated as in the context expression of a 
Computed Element Constructor.  I.e. they must precede attributes which 
must precede other content.

(2) They are not allowed, in which case the specification should say 
that, as it does for document nodes.

I think (1) is more consistent.  Otherwise, why can the content of a 
direct element constructor allow attributes but not namespaces, while 
the content of a computed constructor allows both?

An alternative is to dis-allow *both* attributes and namespace nodes in 
direct element constructors, since you can create attributes using both 
literal attributes as well as attribute nodes in enclosed content, and 
that's arguably a bit of a weird hack.  Since we have computed element 
constructors, we don't need this special handling.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/
Received on Monday, 25 August 2003 22:21:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:13 UTC