W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2005

RE: Optional indicator in direct element and attribute constructors.

From: Mike Carey <mcarey@bea.com>
Date: Fri, 13 May 2005 07:33:12 -0700
Message-ID: <32D5845A745BFB429CBDBADA57CD41AF0F9B9560@ussjex01.amer.bea.com>
To: "Michael Kay" <mhk@mhk.me.uk>, "David Carlisle" <davidc@nag.co.uk>, "Daniel Engovatov" <dengovatov@bea.com>
Cc: <public-qt-comments@w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:05 UTC