[xquery-talk] let's comment out a line in XQuery

David Lee dlee at calldei.com
Thu Dec 20 04:18:26 PST 2012

Since I am tired this morning :)
Try perusing this tread for a lively discussion on XQuery comments


-----Original Message-----
From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On Behalf Of Michael Kay
Sent: Thursday, December 20, 2012 3:30 AM
To: talk at x-query.com
Subject: Re: [xquery-talk] let's comment out a line in XQuery

Clearly there are contexts in which commenting out a line of code will leave a query that is syntactically or semantically invalid. Why do you find this strange? Why do you expect us to be able to tell you why the remaining query throws an error, when you haven't shown us this query?

Or is this a Christmas quiz: invent a query such that removing line 26 will cause this error?

Michael Kay

On 20/12/2012 05:45, jidanni at jidanni.org wrote:
> Geez, all I wanted to do was comment out a line:
> (: <coordinates>120.865225,24.181802</coordinates> :) But now I have 
> to make it
> (: 120.865225,24.181802 :)
> or else I get
> $ basex noise.xq > noise.kml
> Stopped at line 26, column 46 in /home/jidanni/mapping/kml/noise.xq:
> [XPTY0004] Single item expected, (120.865225,24.181802, 120.865201,24.181712) found.
> _______________________________________________
> talk at x-query.com
> http://x-query.com/mailman/listinfo/talk

talk at x-query.com

More information about the talk mailing list