jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: XPath queries
Date Mon, 06 Dec 2004 16:40:33 GMT
Hi Alex,

XPath queries are not yet implemented in jackrabbit. As jackrabbit will 
serve as the reference implementation it will finally support XPath of 
course.

Regarding your question about creating node types using the import 
mechanism, see recent post on jcr-crx forum:
http://groups.yahoo.com/group/jcr-crx/message/95

regards,
  marcel

Alex Melament wrote:
> 
> 
> 
> Hello,
> 
> I have tried to run XPath query as following:
> 
> 
>             QueryManager qM = workSpace.getQueryManager();
>             String[] langSupport = qM.getSupportedQueryLanguages();
>             for(int i = 0; i < langSupport.length; i++)
>             {
>                 System.out.println("language support[" + langSupport[i] +
> "]");
>             }
> 
> from code above I have understood that XPath queries are supported. However
> when I am trying to run the following code, the
> javax.jcr.query.InvalidQueryException: unknown language is thrown
> 
>             Query q = qM.createQuery("//my-first-node",
> Query.XPATH_DOCUMENT_VIEW);
> 
> 
> Do you support  XPath queries?
> 
> 
> Another question is, can I create a node types using system/document view.
> Where can I find an example?
> 
> Thanks,
>       Alex
> 
> 

Mime
View raw message