[
https://issues.apache.org/jira/browse/JXPATH-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533775
]
Matt Benson commented on JXPATH-104:
------------------------------------
Indeed; selectSingleNode() should interpret the colon-delimited portion of the
path element as a namespace, and this does not seem to be occurring. The
answer to the original user issue is to use the @name attribute to specify a
non-XPath-compliant map key as a path element.
> inconsistent behavior between selectNodes()/selectSingleNode() of string map
> key with embedded colon
> ----------------------------------------------------------------------------------------------------
>
> Key: JXPATH-104
> URL: https://issues.apache.org/jira/browse/JXPATH-104
> Project: Commons JXPath
> Issue Type: Bug
> Affects Versions: Nightly Builds
> Reporter: Matt Benson
> Fix For: 1.3
>
>
> http://mail-archives.apache.org/mod_mbox/commons-user/200710.mbox/[EMAIL
> PROTECTED]
> Summary: selectNodes() treats colon as ns, while selectSingleNode() treats
> it as part of the string key. Which is correct is debatable, but some
> consistent solution must be identified/implemented.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.