On Tue, 2003-12-09 at 23:15, Upayavira wrote:
> [EMAIL PROTECTED] wrote:
> 
> >This depends on what search do you want. 
> >
> >If you want to search "hello" string within music node then you should use 
> >//music[contains(string(),'hello')]
> >
> > or if you want to search "hello" within the the document as under :
> >
> ><music>
> ><title>hello</title>
> ></music>
> >
> >then you may use //music/title[contains(string(),'hello')]
> >  
> >
> Avik,
> 
> I've managed to get: //music[filename[contains(string(),"athe")]] to 
> work from my unit tests, but with the same query run within Cocoon I 
> still get:
> java.lang.NoSuchMethodError: org.apache.xpath.compiler.OpMap.getOpMap()[I
> 
> So there's something different between my two environments. Hmm. Both 
> use the xindice-1.1b1.jar. Hmm.

The latest versions of Xalan changed some of the xpath methods. You must
be using a new version of Xalan.

-k.

> Any ideas?
> 
> Thanks for getting me this far.
> 
> Regards, Upayavira
> 
> >Avik
> >
> >
> >----- Original Message -----
> >From: Upayavira <[EMAIL PROTECTED]>
> >Date: Tuesday, December 9, 2003 2:28 pm
> >Subject: What XPATH is available
> >
> >  
> >
> >>I am trying the following XPath:
> >>
> >>//music[contains(title, 'hello')]
> >>
> >>which gives me an error:
> >>java.lang.NoSuchMethodError: 
> >>org.apache.xpath.compiler.OpMap.getOpMap()[I
> >>This suggests that this XPath expression is not supported by 
> >>XIndice. 
> >>Can someone tell me what XPath I do have access to? Is it just the 
> >>//music[title = 'hello'] kind? If so, this is rather limited/limiting.
> >>
> >>Thanks,
> >>
> >>Upayavira
> >>    
> >>
> >
> >
> >  
> >
> 
> 
> 

Reply via email to