RE: Optional indicator in direct element and attribute constructors.

And for attributes?
Andt the impact on large transformation queries?
Again, this is nothing but syntactic sugar for our users.
Else we could just standardize/ship XQuery's core language, right? 

-----Original Message-----
From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Michael Kay
Sent: Friday, May 13, 2005 7:01 AM
To: 'David Carlisle'; Daniel Engovatov
Cc: public-qt-comments@w3.org
Subject: RE: Optional indicator in direct element and attribute
constructors.


> don't you just need to replace
> <b>...</b>
> by
> 
> let $x := <b>...</b>
> return
> if ($x/node()) then $x else ()
> 

Or even

<b>...</b>[node()]

Michael Kay

Received on Friday, 13 May 2005 14:33:25 UTC