Have you tried escaping the @
IIRC there is a JCRUtils method for the purpose.
Ian

On 14 Sep 2010, at 06:55, Carl Hall wrote:

> I'm using the following XPath and can't get around having an @ symbol in a
> node name (name == "[email protected]").  Is there a way for me to escape
> this so I can query?
> 
> //element(*, sakai:pooled-content)[(jcr:contains(., '*') or
> jcr:contains(jcr:content, '*')) and (t/te/
> [email protected]/@sakai:pooled-content-manager='[email protected]') ] order
> by @jcr:created descending
> 
> 
> Before we started allowing @ in the username, the query worked fine but
> fails now with: "Encountered: "@" (64), after : ""
> at
> org.apache.jackrabbit.spi.commons.query.xpath.XPathTokenManager.getNextToken(XPathTokenManager.java:13261)"
> 
> Thanks,
> Carl

Reply via email to