jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Zdila (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-1447) XPath exists/not exists operator with child axis
Date Wed, 07 May 2008 14:44:56 GMT

    [ https://issues.apache.org/jira/browse/JCR-1447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594927#action_12594927
] 

Martin Zdila commented on JCR-1447:
-----------------------------------

Also //aaa[nonexistingnode] returns aaa node even when it has no nonexistingnode childnode.

> XPath exists/not exists operator with child axis
> ------------------------------------------------
>
>                 Key: JCR-1447
>                 URL: https://issues.apache.org/jira/browse/JCR-1447
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: jackrabbit-core, xpath
>         Environment: Linux 64-Bit (openSUSE 10.3) using Java 1.5.0_12 64-Bit
>            Reporter: Frederic Laugier
>         Attachments: asf-jackrabbit-tests_src.zip
>
>
> There seems to be an issue regarding the Exists / Not exists XPath operators.
> Given the following test contents :
> + nodeA
>   - prop1 = 'value'
>   + child
>      - subprop1 = 'something'
> + nodeB
>   - prop1 = 'value'
>   + child
> + nodeC
>   - prop1 = 'value'
> The query //*[child/@subprop1)] returns nodeA.
> The query //*[child/not(@subprop1)] returns nodeB.
> The query //*[not(child/@subprop1)] returns only nodeB, it should return nodeC as well.

-- 
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