Re: [XQuery] Computed Namespace Constructors (qt-2003Nov0292-01)

Kay, Michael wrote:


> In a computed element constructor, the name expression is followed by
> the body, which consists of zero or more local namespace declarations
> (CompElemNamespace) followed an optional content expression
> (ExprSingle). If more than one content expression is present, or if a
> local namespace declaration follows the content expression, a static
> error is raised.[err:XQ0042]

Why the restriction on at most one content expressions?
It seems a needless restriction.

> Note that by choosing a static interpretation, the WG made a conscious
> decision not to provide any capability in XQuery 1.0 for dynamic
> creation of namespaces in the result tree (i.e. namespaces whose URIs
> are not known statically at the time the query is written).

Ok.  As long as no-one could come up with a use case for that.

> I would be grateful if you could confirm that the revised text resolves
> the issue you raised in your comment.

Yes, thanks.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

Received on Friday, 16 January 2004 18:28:12 UTC