[xquery-talk] Comments Gotcha

David Carlisle davidc at nag.co.uk
Sun Jul 22 15:46:34 PDT 2012

On 22/07/2012 23:33, Ihe Onwuka wrote:
> Didn't use the right kind of comments and fell foul of this gotcha
> http://en.wikibooks.org/wiki/XQuery/Gotchas#Comments
> Except what I really want to do is comment a line in a direct
> constructor and whichever type of comment I use it's going to appear
> in the output and I don't want it to.

Can't you do

<myelement>{((: a comment:))}</myelement>

To put a comment in (an empty list in an enclosed expression in) a 
direct element constructor?


More information about the talk mailing list