[xquery-talk] Problem with SubFlowr-Expr

florianwendland at freenet.de florianwendland at freenet.de
Fri May 11 02:27:56 PDT 2007


Hi all,
I have some wierd problems with a xquery syntax. The query lokks like this:

declare variable $book external;
declare variable $books external;

<Books>
	{
	for $bid in $book/books/book
	let $b := $books/Import/Row
	return
		<Book>
			<id>{$bid/id/text()}</id>
			<ddd>jj</ddd>
			{
				for $a in $b[xs:integer(./id/text()) eq xs:integer($bid/id/text())]
				return
					<description>{$a/description/text()}</description>
					<review>This is the Error</review>
			}
		</Book>
	}
</Books>


The Query could not be parsed, because after the element description, in 
the subflowr, the parser expects an }. I didn't know, what ist wrong 
with it! Can anyone help me? I would be grateful!

Thx
mfw


More information about the talk mailing list