jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1680) Another operator for fn:name predicates (!=, <>)
Date Mon, 21 Jul 2008 13:35:31 GMT

     [ https://issues.apache.org/jira/browse/JCR-1680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jukka Zitting updated JCR-1680:
-------------------------------

    Affects Version/s:     (was: core 1.4.4)
        Fix Version/s:     (was: core 1.4.5)
           Issue Type: New Feature  (was: Improvement)

> Another operator for fn:name predicates (!=, <>)
> ------------------------------------------------
>
>                 Key: JCR-1680
>                 URL: https://issues.apache.org/jira/browse/JCR-1680
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: query
>            Reporter: Helio
>            Priority: Minor
>
> 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