I am running into a weird problem with accessing nodes in my XML file.If I do (in my XQuery file) :\[code\]return <result>$myfile/option[2]</result>\[/code\]It works fine, however, if I try :\[code\]return <result>$myfile/option[$myfile/data(@index)]</result>\[/code\]It doesn't work. The value of \[code\]$myfile/data(@index)\[/code\] is 2.Any insights would be greatly appreciated.