Sorry, you need to make a  bit  more room in your brain.
The proper syntax is context specific.  And I made a mistake in my example.
double bad :)

inside an element constructor you need this:

<elem>{()(:comment:)}</elem>

other places you use

   (: comment :)
but realize that produces nothing, not the empty sequence so some places it 
wont work and you might need 

   ()(:comment:) 

its actually quite easy once you learn the syntax.




----------------------------------------
David A. Lee
[email protected]
http://www.xmlsh.org


-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Thursday, December 20, 2012 11:12 AM
To: David Lee
Cc: [email protected]; [email protected]
Subject: Re: [xquery-talk] let's comment out a line in XQuery

OK. In my brain (which only has room for one comment syntax per
language) I will now try to remember
{(: comment :)()}
as the REAL XQuery comment syntax (the one that is guaranteed not to
fail, the one that gets even tough stains out),
and any simplifications thereof e.g.,
(: comment :)
as mere shortcuts that will sometimes fail. I hope that is fair,
assuming I only want to remember one comment syntax. (No I don't want to
use <!-- comment --> as that ends up in the laundry.)



_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to