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

xquery: iteration simulation

Michalmas michalmas at gmail.com
Sun Mar 8 21:29:12 PST 2009


  xquery: iteration simulation
Hello guys,

Can you help me with the following problem:

I have some XML.

Now, i need to query it. But what i need to do, is to make queries of the
form:

count(mainNode//someStr)
count(mainNode//someStr/someStr)
(...)
count(mainNode//someStr/someStr/someStr/someStr/someStr/someStr/someStr/someStr)

The deep level of the last query may be even around 50 (so, 50 queries).
Such set of queries will be repeated for about 100 keywords (like someStr).
In total, that gives about 500 queries to create.

Is is posible to write iteration in XQuery for that. Or pass it as a
function?

Thanks,
M.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20090308/394942fd/attachment.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-2007 All Rights Reserved.