There's no facility in the XQuery standard to do this. However many products have an extension called xx:eval() or xx:evaluate() - see for example saxon:evaluate().

Michael Kay
Saxonica

On 30/03/2012 10:54, Kunal Chauhan wrote:
Hi all,
I have a string and I want to execute it as an expression.
for example I have below xml file.
MyXML.xml
<doc>
<abc temp="$doc/xyz">123</abc>
<xyz>234</xyz>
</doc
now when i write query like
$doc := MyXML.xml/doc
$result := $doc/abc/@temp <mailto:$doc/abc/@temp>
return $result
RESULT (I am getting) : $doc/xyz
RESULT (I am expecting) : <xyz>234</xyz>
that means i am getting $doc/xyz as an string but how can I execute this string and get my desired result.
Thanks and Regards,

--
*Kunal Chauhan*
[email protected] <mailto:[email protected]>
[+918655517141]
[+919904983614]



_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to