<html>
<head>
<title>{$dash-cms-name}</title>{(:blah:)}
<meta http-equiv="expires" content="Mon, 22 Jul 2020 11:12:01 GMT"/>
returns
[XPST0003] Expecting valid expression after curly brace.
The following query is a valid XQuery 3.1 expression:
<x>{ (: bla :) }</x>
Do you use an older version of XQuery or BaseX? Are you looking for
something else_
On Thu, Feb 2, 2017 at 6:48 PM, France Baril
<france.baril@architextus.com> wrote:
> Cleaner fake code... A less ugly hack ;-)...
>
> On Wed, Feb 1, 2017 at 6:54 PM, Murray, Gregory <gregory.murray@ptsem.edu>
> wrote:
>>
>> Have you tried just an empty sequence?
>>
>> {() (: comment... :)}
>>
>>
>> On Feb 1, 2017, at 5:01 PM, France Baril <france.baril@architextus.com>
>> wrote:
>>
>> I was wondering if it would be possible to either:
>>
>> * Allow for an omit-comment option in HTML5 serializer
>> * Allow for {(: Nothing but a comment :)} in xquery code.
>>
>> I often have long pieces of HTML to output and clients don't want me to
>> output them with the result. However, I can't use {(::)}. I have been using
>> useless code around my comments just to get around this issue:
>>
>> {
>>
>> let $t := '' return $t
>>
>> (: The comment I can't leave without the bogus code:)
>>
>> }
>>
>>
>> Thanks!
>>
>>
>> --
>> France Baril
>> Architecte documentaire / Documentation architect
>> france.baril@architextus.com
>
>
>
>
> --
> France Baril
> Architecte documentaire / Documentation architect
> france.baril@architextus.com