Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 61920 invoked from network); 13 Sep 2010 20:57:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Sep 2010 20:57:04 -0000 Received: (qmail 97962 invoked by uid 500); 13 Sep 2010 20:57:04 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 97905 invoked by uid 500); 13 Sep 2010 20:57:03 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 97896 invoked by uid 99); 13 Sep 2010 20:57:03 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 20:57:03 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.82.50] (HELO mail-ww0-f50.google.com) (74.125.82.50) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 20:56:39 +0000 Received: by wwb18 with SMTP id 18so7476858wwb.19 for ; Mon, 13 Sep 2010 13:56:18 -0700 (PDT) Received: by 10.227.137.211 with SMTP id x19mr3454826wbt.32.1284411378377; Mon, 13 Sep 2010 13:56:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.143.129 with HTTP; Mon, 13 Sep 2010 13:55:58 -0700 (PDT) X-Originating-IP: [71.92.39.5] From: Carl Hall Date: Mon, 13 Sep 2010 16:55:58 -0400 Message-ID: Subject: xpath querying for node with @ in the name To: users@jackrabbit.apache.org Content-Type: multipart/alternative; boundary=00163683317ef422b404902a531c X-Virus-Checked: Checked by ClamAV on apache.org --00163683317ef422b404902a531c Content-Type: text/plain; charset=ISO-8859-1 I'm using the following XPath and can't get around having an @ symbol in a node name (name == "test@example.com"). 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/ test@example.com/@sakai:pooled-content-manager='test@example.com') ] 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 --00163683317ef422b404902a531c--