Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339025 - [xpath2] ability to find distinct values on node items (fixes to fn:distinct-values function)
Summary: [xpath2] ability to find distinct values on node items (fixes to fn:distinct-...
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xpath (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jesper Moller CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-05 20:27 EST by Mukul Gandhi CLA
Modified: 2011-03-05 20:51 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mukul Gandhi CLA 2011-03-05 20:27:24 EST
Build Identifier: I20090313-0100

given the following XML fragment,

<X>
   <a>1</a>
   <a>2</a>
   <a>3</a>
   <a>4</a>
</X>

distinct-values(a) {context node being "X"} doesn't give right results if element "a" was validated by the type xs:integer (or any other atomic type). To solve this, we need to atomize the input in the implementation of fn:distinct-values. This should work similarly to fn:max for example.

I'll shortly be committing an improvement for this. 

Reproducible: Always
Comment 1 Mukul Gandhi CLA 2011-03-05 20:51:50 EST
committed fixes for this bug report, both on HEAD and service branch. also committed few test cases.

i'm marking this issue resolved.