Re: XQuery function

At 07:46 PM 7/9/2001 -0700, Michael Dyck wrote:

>But even if an implementation provides concat(), it presumably just returns
>a string, which isn't going to do the OP any good. That is, in the example,
>$var2 will be bound to (something like) the string
>"$var1//Attributes/CONCAT_ELEMENT/Value", whereas he apparently wants it
>bound to each of the nodes that would result from evaluating that string as
>XQuery/XPath.

Right - he would need something like an eval() function as well:

   for $var2 in eval(concat("$var1//Attributes/",$param,"/Value") )
   return ...

That would raise lots of issues with typing. I don't think eval() is at all 
likely to be part of the XQuery 1.0 recommendation.

Jonathan

These are my opinions right now. They may be quite different from the 
opinions of Software AG, the W3C XML Query Working Group, or the opinions 
that I will have after reading and considering your response.

Received on Tuesday, 10 July 2001 10:35:21 UTC