|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Empty nodes, no text is shown in xquery sandbboxHi 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 |
|
|
Re: Empty nodes, no text is shown in xquery sandbbox&= '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 |
|
|
|
|
|
Re: Empty nodes, no text is shown in xquery sandbboxhi,
On Tue, May 13, 2008 at 11:19 AM, Adam Retter <adam@...> wrote: > Are you sure $tmp is empty? and that it hasnt serialized the XML into the page? for $tmp in $sD/search[searchName &= 'lemma'] let $lemma := $sD/search/searchValue/text() what if you change this into for $tmp in $sD/search[searchName &= 'lemma'] let $lemma := $sD/searchValue/text() regards Dannes ------------------------------------------------------------------------- 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 |
|
|
|
| Free Forum Powered by Nabble | Forum Help |