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: question about XPath
Date Mon, 27 Nov 2006 10:42:49 GMT
you need to escape the name according to section 6.4.3 'Escaping of Names':

//element(prueba_x0020_fe.txt, okm:document)

regards
  marcel

btw. this is rather a question for the jackrabbit user list...

Paco Avila wrote:
> The question is about the "element()" sintax:
> 
> If I want to search all nodes which type is "okm:document" the query is:
> 
> 	//element(*, okm:document)
> 
> And if I want to search all nodes which type is "okm:document" and the
> node name is "prueba fe.txt":
> 
> 	//element(prueba&#32;fe.txt, okm:document)
> 
> But this throw an error:
> 
> 	Lexical error at line 1, column 27.  Encountered: "&" (38), after : ""
> 
> So, I don't know how can I code the space ' ' in the node name.


Mime
View raw message