[xquery-talk] FLWOR Expression
Michael Kay
mhk at mhk.me.uk
Fri Dec 23 14:08:43 PST 2005
What are you aiming to achieve?
You can convert it to a FLWOR expression trivially like this:
for $x in //chunklist/chunk/par/s/tok[orth/text() = "se" and
contains(disamb/ctag/text(), "KS")]
return $x
But that's hardly an improvement.
You could also convert it to
for $x in //chunklist/chunk/par/s/tok[orth/text() = "se" and
contains(disamb/ctag/text(), "KS")]
where $x/(orth/text() = "se" and contains(disamb/ctag/text(), "KS"))
return $x
but I don't think that's an improvement either.
Michael Kay
http://www.saxonica.com/
_____
From: talk-bounces at xquery.com [mailto:talk-bounces at xquery.com] On Behalf Of
Elarrat, EFC
Sent: 23 December 2005 11:41
To: talk at xquery.com
Subject: [xquery-talk] FLWOR Expression
I tryed to convert one XPath expression that I did to a FLWOR expression,
guess what?
year...I couldn't...so if anyone could help me, I'd appreciate that.
I would like to convert this xpath (it's a xpath expression, right?):
//chunklist/chunk/par/s/tok[orth/text() = "se" and
contains(disamb/ctag/text(), "KS")]
to some FLWOR expression, with loops and stuff.
Thanks a lot,
Eduardo Elarrat
Happy XQuery Christmas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xquery.com/pipermail/talk/attachments/20051223/ed4ac1db/attachment-0001.htm
More information about the talk
mailing list