simple query not working

View: New views
6 Messages — Rating Filter:   Alert me  

simple query not working

by ejaenv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I am testing the query panel of the client GUI. If I do  
doc("hamlet.xml")//*    it works OK, but

doc("hamlet.xml)//TITLE   doesn't work. What I am doing wrong?
Thanks,
/E.



      ______________________________________________
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Parent Message unknown Re: simple query not working

by ejaenv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry in my previous mail I missed a quote.

it's doc("hamlet.xml")//TITLE  

but it doesn't work. So, what I am doing wrong?
I am quite confused.
/Enric


----- Mensaje original ----
De: Enric Jaen <enricjaen@...>
Para: exist-open@...
Enviado: viernes, 4 de julio, 2008 17:22:38
Asunto: simple query not working

Hi, I am testing the query panel of the client GUI. If I do  
doc("hamlet.xml")//*    it works OK, but

doc("hamlet.xml)//TITLE   doesn't work. What I am doing wrong?
Thanks,
/E.



      ______________________________________________
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.



      ______________________________________________
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Parent Message unknown Re: simple query not working

by ejaenv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I must have an installation problem because if I try the eXist's sandbox with
doc("http://www.functx.com/input/catalog.xml")//product  it works,

but if I do the same query in my installed sandbox then it doesn't return nothing.

When I start up server it shows:

xerces-J 2.9.1
Saxon 9.1.0.1

So what is wrong with my installation?

/Enric




----- Mensaje original ----
De: Enric Jaen <enricjaen@...>
Para: exist-open@...
Enviado: viernes, 4 de julio, 2008 17:39:29
Asunto: Re: simple query not working

Sorry in my previous mail I missed a quote.

it's doc("hamlet.xml")//TITLE  

but it doesn't work. So, what I am doing wrong?
I am quite confused.
/Enric


----- Mensaje original ----
De: Enric Jaen <enricjaen@...>
Para: exist-open@...
Enviado: viernes, 4 de julio, 2008 17:22:38
Asunto: simple query not working

Hi, I am testing the query panel of the client GUI. If I do  
doc("hamlet.xml")//*    it works OK, but

doc("hamlet.xml)//TITLE   doesn't work. What I am doing wrong?
Thanks,
/E.



      ______________________________________________
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.



      ______________________________________________
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.



      ______________________________________________
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: simple query not working

by Wolfgang Meier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> doc("hamlet.xml)//TITLE   doesn't work. What I am doing wrong?

Not sure what's wrong, but I would generally recommend to specify the
full path to the document with fn:doc(), e.g.
doc("/db/my/collection/hamlet.xml")//TITLE. Otherwise the path will be
interpreted relative to the current context collection and this may
change depending on how you call the query.

Wolfgang

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Parent Message unknown Re: simple query not working

by ejaenv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I reinstalled eXist and now it works.
Thanks to all who replied.
/Enric



----- Mensaje original ----
De: Enric Jaen <enricjaen@...>
Para: exist-open@...
Enviado: viernes, 4 de julio, 2008 18:49:55
Asunto: Re: simple query not working

I must have an installation problem because if I try the eXist's sandbox with
doc("http://www.functx.com/input/catalog.xml")//product  it works,

but if I do the same query in my installed sandbox then it doesn't return nothing.

When I start up server it shows:

xerces-J 2.9.1
Saxon 9.1.0.1

So what is wrong with my installation?

/Enric




----- Mensaje original ----
De: Enric Jaen <enricjaen@...>
Para: exist-open@...
Enviado: viernes, 4 de julio, 2008 17:39:29
Asunto: Re: simple query not working

Sorry in my previous mail I missed a quote.

it's doc("hamlet.xml")//TITLE  

but it doesn't work. So, what I am doing wrong?
I am quite confused.
/Enric


----- Mensaje original ----
De: Enric Jaen <enricjaen@...>
Para: exist-open@...
Enviado: viernes, 4 de julio, 2008 17:22:38
Asunto: simple query not working

Hi, I am testing the query panel of the client GUI. If I do  
doc("hamlet.xml")//*    it works OK, but

doc("hamlet.xml)//TITLE   doesn't work. What I am doing wrong?
Thanks,
/E.



      ______________________________________________
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.



      ______________________________________________
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.



      ______________________________________________
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.



      ______________________________________________
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: simple query not working

by Dannes Wessels-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

On Fri, Jul 4, 2008 at 7:25 PM, Enric Jaen <enricjaen@...> wrote:
> I reinstalled eXist and now it works.

hmmm that really does make no sense :-)

regards

Dannes

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open