logo       

XQuery part good, part bad, todays snapshot: msg#00194

text.xml.exist

Subject: XQuery part good, part bad, todays snapshot

Hello All,

OK, my query now works properly in the following form:

element Users
{ for $x in //User[ClinicName="testClinic"]
let $y := $x/Username/text()
return element User {
attribute generation {$x/@generation},
attribute OffLine {$x/@Offline},
$y
} }

Even though it is not clear to me why I have to use "$y" to
get it to work (see my complaint from yesterday)

However, in testing I inadvertently omitted the closing double-quote
after 'testClinic'. eXist went into an infinite loop, bombing on an
out-of-memory exception after some seconds.


--
Best regards,
Amotz Anner mailto:amotz@xxxxxxxxx
Founder
X.M.L Systems Ltd.
46, Jerusalem St. Flat 9B
Kfar-Saba 44369
Israel
Cell: 054-6860707




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise