jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paco Avila <pav...@git.es>
Subject Re: problem escaping reserved characters in XPath
Date Mon, 26 Feb 2007 12:21:31 GMT
El lun, 26-02-2007 a las 12:46 +0100, Cédric Damioli escribió:
> AFAIK, ' characters must be escaped twice in jcr:contains() query : once 
> for XPath (with two '), once for jcr:contains (with a \).
> Your query should be :
> 
> //element(*,okm:document)[jcr:contains(@okm:name,'\''eee')]

Ok, thanks! 

> 
> 
> Paco Avila a écrit :
> > According to the specification (6.6.5.2) jcr:contains() expression must
> > be escaped if it includes some characters like ' , but my query fails:
> >
> > 	//element(*,okm:document)[jcr:contains(@okm:name,'\'eee')]
> >
> > Lexical error at line 1, column 79. Encountered:  after : "\')] return
> > $v": Lexical error at line 1, column 79. Encountered:  after : "\')]
> > return $v"
> >
> >   
> 
-- 
GIT Consultors S.L.
c\ Francesc Rover 2-B
07003 Palma de Mallorca
(Illes Balears)


Mime
View raw message