jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-247) Child axis support for XPath predicates
Date Tue, 21 Nov 2006 10:39:08 GMT
     [ http://issues.apache.org/jira/browse/JCR-247?page=all ]

Marcel Reutegger resolved JCR-247.
----------------------------------

    Fix Version/s: 1.2
       Resolution: Fixed

Implemented support for child axis in predicates.

E.g. you can now execute queries like:

//*[foo/@bar = 1234]
//page[jcr:contains(paragraph, 'text')]
//page[jcr:like(fn:lower-case(paragraph/@author), 'marcel%')]

and the famous:

//element(*, nt:file)[jcr:contains(jcr:content, 'text')]

you may also use * as a name test:

//foo[bar/*/@bar > 1234]

One limitation though:
- nested predicates are not supported (which also means that you cannot use an index within
the predicate):

E.g. the following query will fail:

//page[jcr:contains(paragraph[3], 'text')]

> Child axis support for XPath predicates
> ---------------------------------------
>
>                 Key: JCR-247
>                 URL: http://issues.apache.org/jira/browse/JCR-247
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: xpath
>    Affects Versions: 0.9, 1.0, 1.0.1
>            Reporter: Jukka Zitting
>             Fix For: 1.2
>
>
> It seems that Jackrabbit currently only supports the attribute axis in XPath predicates.
Support for the child axis would be a nice addition.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message