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

Michael Kay mike at saxonica.com
Thu Dec 20 00:29:33 PST 2012

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

More information about the talk mailing list