[xquery-talk] why must one have something inside {} ?

jidanni at jidanni.org jidanni at jidanni.org
Tue Dec 6 11:34:09 PST 2011

>>>>> "RG" == Rademacher, Gunther <Gunther.Rademacher at softwareag.com> writes:
RG> (from http://www.w3.org/TR/xquery/#parse-note-comments )
where it says

      + <eg (: an example:)>{$i//title}</eg> is not syntactically valid.

      + <eg> (: an example:) </eg> is syntactically valid, but the characters that look like a comment are in fact literal
        element content.

but forgets to add

      + <eg> {(: an example:)()} </eg> is what you must use if you
      really must insist on having a comment there, believe it or not.

They should make a note of it.

Anyway, I'm beginning to fear poking the perhaps 'house of cards' syntax
at this late stage of the game.

More information about the talk mailing list