Like David Said ...
Or
<elem>{()(:comment:)}</elem>
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: [email protected] [mailto:[email protected]] On Behalf Of
David Carlisle
Sent: Sunday, July 22, 2012 6:47 PM
To: Ihe Onwuka
Cc: [email protected]
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?
David
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk