[xquery-talk] Comments Gotcha

David Lee dlee at calldei.com
Sun Jul 22 17:51:50 PDT 2012

Like David Said ...

Admittedly its one of the quirkiest parts of xquery ....
But makes total sense once you do a hand stand and put one foot on blue and a hand on red.
Atleast its not XSLT :)

-----Original Message-----
From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On Behalf Of David Carlisle
Sent: Sunday, July 22, 2012 6:47 PM
To: Ihe Onwuka
Cc: talk at x-query.com
Subject: Re: [xquery-talk] Comments Gotcha

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?


talk at x-query.com

More information about the talk mailing list