Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338999

Summary: [xpath2] improving compliance of function 'fn:subsequence'. implementing full arity support.
Product: [WebTools] WTP Source Editing Reporter: Mukul Gandhi <mukul.gandhi>
Component: wst.xpathAssignee: Project Inbox <wst.xsl-inbox>
Status: RESOLVED FIXED QA Contact: Jesper Moller <jesper>
Severity: normal    
Priority: P3 CC: d_a_carver, jesper
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Mukul Gandhi CLA 2011-03-05 03:05:12 EST
Build Identifier: I20090313-0100

The present implementation of XPath 2.0 function 'fn:subsequence' doesn't implement arity 2. I'm submitting an improvement of 'fn:subsequence' function implementation with full arity support, along with few test cases.

Ref: http://www.w3.org/TR/xpath-functions/#func-subsequence

Reproducible: Always
Comment 1 Mukul Gandhi CLA 2011-03-05 04:03:10 EST
I've committed the changes for this bug report to HEAD and service branch. Also committed few test cases for this change.

I'm noticing that the test project is updated to use new APIs. It now seems that the test project cannot test service branch at the moment (we should be able to test the service branch too). What should we do regarding this?

I'm still not resolving/closing this bug, until the remaining issues are solved.

Thanks.
Comment 2 David Carver CLA 2011-03-05 19:28:32 EST
(In reply to comment #1)
> I've committed the changes for this bug report to HEAD and service branch. Also
> committed few test cases for this change.
> 
> I'm noticing that the test project is updated to use new APIs. It now seems
> that the test project cannot test service branch at the moment (we should be
> able to test the service branch too). What should we do regarding this?

You'll need to check out the code for the Service branch as well.  The service branch should have a version of the test files available.

So any test case changes you'll need to make in the service branch as well.
Comment 3 Mukul Gandhi CLA 2011-03-06 01:45:56 EST
Thnaks, Dave for comments.

Since the functional problems mentioned in this bug report are solved, i'm marking this issue resolved.

We'll work overtime to solve the portability issues of test project between HEAD location and service branch.

Thanks.