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

jidanni at jidanni.org jidanni at jidanni.org
Sat Dec 3 05:20:41 PST 2011

Gentlemen, what a spiteful language xquery is, not allowing an empty
statement. I want to "comment out" a line,

 {doc("p.xml")//STYLES/*} <--- Let's comment out this line

 {(: doc("p.xml")//STYLES/* :)}
BaseX makes [XPST0003] Expecting valid expression after "{".

 <!-- {doc("p.xml")//STYLES/*} -->
Works but ends up in output.

It's all because {} for some reason needs to be filled with some junk.
OK, adding "" works:
 {""(: doc("p.xml")//STYLES/* :)}

More information about the talk mailing list