jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helio (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-1680) Another operator for fn:name predicates (!=, <>)
Date Wed, 16 Jul 2008 12:57:31 GMT
Another operator for fn:name predicates (!=, <>)
------------------------------------------------

                 Key: JCR-1680
                 URL: https://issues.apache.org/jira/browse/JCR-1680
             Project: Jackrabbit
          Issue Type: Improvement
          Components: query
    Affects Versions: core 1.4.4
            Reporter: Helio
            Priority: Minor
             Fix For: core 1.4.5


I have a need to search node in a level that not match some names.
Take the following tree:

A
A/B
A/B/D
A/C
A/C/E


So, I want to retrieve the nodes only under A, that have the names (or path) not equal to
B (node A/C would be the result in this case).

I tried some searches with xpath and sql, but without sucess. An implementation of the operator
!=, or NOT = , for the  predicate fn:name would resolve the case. So the query that agree
would be:
/jcr:root/A/element(*,my:type)[fn:name!='B']

or

/jcr:root/A/element(*,my:type)[NOT(fn:name='B')]


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message