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

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

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

 <Document>
 <!-- {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:
 <Document>
 {""(: doc("p.xml")//STYLES/* :)}
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to