You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2010/01/11 15:20:54 UTC
[jira] Closed: (JCR-2271) XPath query fails comparing two
attributes
[ https://issues.apache.org/jira/browse/JCR-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting closed JCR-2271.
------------------------------
> XPath query fails comparing two attributes
> ------------------------------------------
>
> Key: JCR-2271
> URL: https://issues.apache.org/jira/browse/JCR-2271
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: query
> Affects Versions: 1.6.0
> Reporter: Brian Stiles
>
> An XPath query (via QueryManager) like '//element(*, nt:nodeType)[@jcr:isMixin=@jcr:hasOrderableChildNodes]' ought to find at least some nodes (e.g., /jcr:system/jcr:nodeTypes/nt:version). However, this query results in no matches. Oddly, changing the comparison from = to != still results in no matches.
> It appears that it is not possible to test for equality of the values of two attributes on the same node (I haven't tested two attributes from different nodes).
> The use case that led to this discovery was one in which I wanted to find all nodes (cards) in an address book for which the first name attribute matches the last name attribute. Any workarounds would be much appreciated.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.