Are you sure $tmp is empty? and that it hasnt serialized the XML into the page?
2008/5/13 Masen J <
masenjabban@...>:
> empty orbeon-page...
>
> I tried :
>
>
> xquery version "1.0";
> declare namespace exist = "
http://exist.sourceforge.net/NS/exist";
> declare namespace xmldb = "
http://exist-db.org/xquery/xmldb";
> declare namespace request="
http://exist-db.org/xquery/request";
>
>
>
> let $sD := request:get-data()
> let $tmp := $sD/search[searchName = 'lemma']
> let $lemma := $sD/search/searchValue/text()
>
> return
>
> <html>
> {$tmp}
> {$lemma}
> </html>
>
> The &tmp is empty.
> The &lemma holds the string(but concats boths to one string because there
> are two searchValues)...
>
> I want the one, where searchName ==lemma...
>
>
>
>
>
> Am 13.05.2008 um 10:14 schrieb Adam Retter:
>
>
> for $tmp in $sD/search[searchName &= 'lemma']
> let $lemma := $sD/search/searchValue/text()
>
--
Adam Retter
eXist Developer
{ England }
adam@...
irc://irc.freenode.net/existdb
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open