« Return to Thread: Empty nodes, no text is shown in xquery sandbbox

Re: Empty nodes, no text is shown in xquery sandbbox

by Adam Retter-3 :: Rate this Message:

Reply to Author | View in Thread

&= 'lemma' is a full text operator, im not sure that will work in the
context of a posted XML document.

What happens if you try = 'lemma' just to test?

2008/5/12 Masen J <masenjabban@...>:

> Hi all,
>
> I am trying to write a search query for a small app but it´s not working at
> all, because my eXist-xquery sandbox leads me to nowhere,,,=(
>
> If I go to the online url and type into the xquery sandbox the example:
>
> for $speech in //SPEECH
> return $speech
>
> everything works fine and the nodes from the xml including the text are
> shown.
>
> When I do this on my local eXist installation, the node(tags) are shown, but
> the text in them is not.
>
> I had this problem  a while ago and installes the eXist db again...but this
> can´t be the solution..
>
>
> and maybe someone could help me with this:
>
> my xml output from an Xform looks like this:
> <searchData>
>     <search>
>         <searchName>lemma</searchName>
>         <searchValue>PC</searchValue>
>         <interpretAs/>
>         <logicParameter/>
>     </search>
>     <search>
>         <searchName>root</searchName>
>         <searchValue>someRoot</searchValue>
>         <interpretAs/>
>         <logicParameter/>
>     </search>
> </searchData>
>
>
> I want to store the searchValue from the search, where the searchName =
> lemma...
>
> in my search.xq
>
>
> let $sD := request:get-data() (looks like the searchData from above...)
>
> for $tmp  in $sD/search[searchName &= 'lemma']
> let $lemma := $sD/search/searchValue/text()
>
>
> not working.=(...
>
>
> -------------------------------------------------------------------------
>  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
>
>



--
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

 « Return to Thread: Empty nodes, no text is shown in xquery sandbbox

LightInTheBox - Buy quality products at wholesale price