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 - Emergency
Date Tue, 01 Jul 2008 09:18:40 GMT
Hi,

please use the users list for this kind of questions.

did you save your changes before you execute the query?

regards
  marcel

jakobitsch juergen wrote:
> what am i doing wrong , none of the following xpath queries gives any result
> using the following structure
> 
>                          Node root = session.getRootNode();
>                          Node BookmarkSpace = root.getNode("turnguard:BookmarkSpace");
>                          Node NewBookmark = BookmarkSpace.addNode("turnguard:Bookmark");
>                          NewBookmark.addMixin("mix:referenceable");
>                          NewBookmark.addMixin("mix:versionable");
>                          NewBookmark.setProperty("turnguard:BookmarkTitle", RequestContainer.getValueFor("BookmarkTitle"));
  
>                          NewBookmark.setProperty("turnguard:BookmarkUrl", RequestContainer.getValueFor("BookmarkUrl"));
  
>                          NewBookmark.setProperty("turnguard:BookmarkDescription", RequestContainer.getValueFor("BookmarkDescription"));
  
>                          NewBookmark.setProperty("turnguard:In", session.getNodeByUUID(RequestContainer.getValueFor("ParentFolderUUID")));

> 
> 
> 1. i cant query for jcr:uuid
>  
> //turnguard:BookmarkSpace/turnguard:Bookmark[@jcr:uuid='cf6b0cac-97f9-4a98-b479-b31e717d2236']
> 
> (i tried every combination with double-slashes, jcr:root in front, with @ and without,...)
> 
> 2. i cant query for element
> 
> //element(*,nt:unstructured)
> //element(*,nt:base)
> 
> nothing...
> 
> 3. i'm far from getting rep:similar to work
> 
> used the query from the wiki.. :(
> 
> 4. i'm far from getting turnguard:Bookmarks that have a certain folder-uuid in turnguard:In
> 
> 
> ===============
> //element(*,jackrabbit:help) ??
> 
> wkr turnguard
> 
> 
>       


Mime
View raw message