[dna-issues] [JBoss JIRA] Commented: (DNA-612) XPath position() and last() functions are not supported

Randall Hauch (JIRA) jira-events at lists.jboss.org
Thu Dec 31 17:33:30 EST 2009


    [ https://jira.jboss.org/jira/browse/DNA-612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12501851#action_12501851 ] 

Randall Hauch commented on DNA-612:
-----------------------------------

See http://issues.apache.org/jira/browse/JCR-591 for a similar issue with the JCR reference implementation.  The issue nicely points out that the position() function applies to the SNS index value, not to the index of the child amongst all children (as it would in XML).

> XPath position() and last() functions are not supported
> -------------------------------------------------------
>
>                 Key: DNA-612
>                 URL: https://jira.jboss.org/jira/browse/DNA-612
>             Project: DNA
>          Issue Type: Bug
>          Components: JCR, Query
>    Affects Versions: 0.7
>            Reporter: Randall Hauch
>            Assignee: Randall Hauch
>            Priority: Blocker
>             Fix For: 0.7
>
>
> An XPath expression that uses the 'position()' or 'last()' functions will not work.  This doesn't appear to be required by the JCR 1.0 specification [1], but is required by several TCK unit tests.
> [1] Section 6.6.6.3 mentions "Required function support ([42] and [60] above) is limited to the functions described in 6.6.5 XPath Extensions", but 6.6.5 does not mention position() or last()

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

        


More information about the dna-issues mailing list