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

Re: belated namespace declaration attributes

From: Jonathan Robie <jonathan.robie@datadirect.com>
Date: Tue, 02 Dec 2003 13:56:25 -0500
Message-Id: <6.0.0.22.2.20031202134013.0356d680@ncmail.datadirect.com>
To: Per Bothner <per@bothner.com>, public-qt-comments@w3.org

At 23:13 26.11.2003, Per Bothner wrote:
>This is tricky to implement (and for humans to read),
>because the namespace declaration attribute follows
>an enclosed expression that makes use of it.  This
>means that namespace resolution cannot be done during
>the first parsing pass.
>
>XQuery could avoid this complexity, by requiring that
>namespace declaration attributes come before regular
>attributes - or at least before any enclosed expressions.

Hi Per,

Element constructors use the syntax of XML, which does not require 
namespace declaration attributes to occur before other attributes. If we 
made the change you suggest, suppose that a user wants to write a query by 
cutting existing XML text and pasting it into a query, adding dynamic 
content - this user would have to make sure that all namespace declaration 
attributes occur first, which means editing the text everywhere that this 
is not the case.

To me, this seems like an ease-of-use versus ease-of-implementation issue, 
and the implementation is not all that difficult.

Jonathan

This email message represents my views only, and is not a response from the 
W3C XML Query Working Group. 
Received on Tuesday, 2 December 2003 13:56:28 UTC

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