[xquery-talk] Problem with "let" statements in an xquery function

Florent Georges lists at fgeorges.org
Wed Aug 13 19:26:10 PDT 2008


Andrew Welch wrote:

> $a//some_element[.=$b]/..[another_elem='foo']

> That line is almost certainly the problem... what are you trying to
> do there?

  I don't know if it is the problem, but at least this is not how I
would write what it says.  I would rather use the equivalent (except
for one corner case):

    $a//*[some_element = $b][another_elem = 'foo']

  But without input sample, we don't know if those are correct or not.

  Regards,

--drkm























      _____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr


More information about the talk mailing list