jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@hippo.nl>
Subject RE: XPath Searching and Unions
Date Fri, 08 Feb 2008 08:38:29 GMT
Hello,

> Hi guys,
> 
> I've got another XPath question for you.  I have the 
> following 2 XPaths both which return results, but I wanted to 
> union them together with a pipe( | ) but when I do that, they 
> return 0 results.

you can use 'or'

-Ard

> 
> //webfmis:content[jcr:contains(@webfmis:body,'Application')]  
>  -- 1 result
> //webfmis:file[jcr:contains(.,'Application')]  -- 1 result 
> //webfmis:content[jcr:contains(@webfmis:body,'Application')] 
> | //webfmis:file[jcr:contains(.,'Application')]  -- 0 results
> 
> I'm not sure if I'm missing something or if maybe this 
> functionality isn't implemented in JackRabbit yet?
> 
> Thanks,
> Sean
> 

Mime
View raw message