Erdal,
Escaping the curly braces by doubling them would be the "normal" way. You ask for a better way; can you be more specific as to what needs to be improved? Would this be an improvement?
let $expr := 'main(){int i=0;}' let $x := doc(<a>{ $expr }</a>) return ...
Cheers, Wendell Wendell Piez | http://www.wendellpiez.com XML | XSLT | electronic publishing Eat Your Vegetables _____oo_________o_o___ooooo____ooooooo_^
On Fri, Oct 18, 2013 at 9:05 AM, Erdal Karaca erdal.karaca.de@gmail.com wrote:
Hi all, How can I process this query in basex:
let $x := doc(<a>main(){int i = 0;}</a>) return replace value of node $x with ""
There are text contents that contain, for example, c code with curly braces which I do not want to be interpreted as embeded expressions.
As a workaround I could escape the curly braces, But, is there a better way/option to suppress interpreting text contents that look like embedded expressions?
Thanks!
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk