[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

FLWOR Expression

Michael Kay mhk at mhk.me.uk
Fri Dec 23 14:08:43 PST 2005


flwor contains
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: http://xquery.com/mailman/listinfo/talk [mailto:http://xquery.com/mailman/listinfo/talk] On Behalf Of
Elarrat, EFC
Sent: 23 December 2005 11:41
To: http://xquery.com/mailman/listinfo/talk
Subject:  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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.