commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JXPATH-108) count() on NodeSet returned from custom function.
Date Tue, 11 Dec 2007 23:25:43 GMT

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

Matt Benson resolved JXPATH-108.
--------------------------------

    Resolution: Fixed

Fixed.  Thanks!

> count() on NodeSet returned from custom function.
> -------------------------------------------------
>
>                 Key: JXPATH-108
>                 URL: https://issues.apache.org/jira/browse/JXPATH-108
>             Project: Commons JXPath
>          Issue Type: Improvement
>    Affects Versions: Nightly Builds
>            Reporter: Michele Vivoda
>            Priority: Minor
>
> If a NodeSet (BasicNodeSet) is returned from a custom function,
> count() does not work and returns always 1.
> Perhaps could be added In ri.compiler.CoreFunction.java, method functionCount(EvalContext)
> else if (value instanceof Collection) {... }
> else if (value instanceof NodeSet) {
>             count = ((NodeSet) value).getValues().size();
>         }
> or similiar.

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