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

FLWOR Expression

Philippe Michiels philippe.michiels at gmail.com
Fri Dec 23 12:54:37 PST 2005


  FLWOR Expression
> //chunklist/chunk/par/s/tok[orth/text() = "se" and
> contains(disamb/ctag/text(), "KS")]

Do you mean something like this:

for $q in
	for $p in
		...
		for $z in
			for $y in
				for $x in $root
				return $x/descendant::chunklist
			return $y/child::chunk
		return $z/child::par
		...
	return $p/child::stok
where
	<<predicate expression here >>
return $q

Some remarks: XPath results are sorted according to document order and contain 
no duplicates. Decomposing them into loops does give the same result up to 
ordering and duplicates.

Best,
Ph


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-2007 All Rights Reserved.