Re: [XQuery] IBM-XQ-021: Automatic assignment of default namespac e

I agree with Dana. It's confusing and dangerous for XQuery to differ 
from XML here, especially since people do copy XML into a query and add 
dynamic expressions.

Jonathan

Daniela Florescu wrote:

> Don,
>
>
> do you mean that you would like XQuery element constructors
>
> to behave differently (with respect to namespace handling) then XML
>
> itself ?
>
>
> I think that's dangerous.
>
>
> Best regards,
>
> Dana
>
>
> On Feb 16, 2004, at 8:43 PM, Don Chamberlin wrote:
>
>
>
> (IBM-XQ-021) Section 3.7.4, Namespace Nodes on Constructed Elements: 
> In the Note in this section, the second paragraph says that an 
> implementation can choose to assign the default namespace (by 
> generating a namespace declaration with a null prefix) when 
> constructing an element. This is a dangerous thing to do. The string 
> content of the element may contain some names that are intended to be 
> in no namespace. Unexpectedly reassigning the default namespace would 
> cause these names in element content to be interpreted incorrectly. I 
> suggest deleting this paragraph.
>
>
> --Don Chamberlin
>

Received on Tuesday, 17 February 2004 05:22:42 UTC