Bug 274719 - [xpath2] implementation of equality of xs:anyURI values
Summary: [xpath2] implementation of equality of xs:anyURI values
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xpath (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M1   Edit
Assignee: David Carver CLA
QA Contact: David Carver CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 262765
  Show dependency tree
 
Reported: 2009-05-02 02:26 EDT by Mukul Gandhi CLA
Modified: 2010-08-11 17:08 EDT (History)
1 user (show)

See Also:


Attachments
patch file for this bug (2.21 KB, patch)
2009-05-02 02:45 EDT, Mukul Gandhi CLA
no flags Details | Diff
test case patch file adding support for this bug (3.98 KB, patch)
2009-05-02 02:46 EDT, Mukul Gandhi CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mukul Gandhi CLA 2009-05-02 02:26:47 EDT
Build ID: I20090313-0100

Steps To Reproduce:
The current Psychopath implementation doesn't implement equality for xs:anyURI values. Though, equality of values like xs:string are implemented.

As a consequence of this limitation, XPath 2.0 equality expressions like:
xs:anyURI('abc') = xs:anyURI('abc')

or

xs:anyURI('abc') eq xs:anyURI('abc')

would fail, with dynamic type exception.

This patch provides this support (i.e., users will now be able to compare xs:anyURI values).

I found this defect important to solve, when trying to do something like:

base-uri(x) eq xs:anyURI('...')

I would be attaching a patch and test case shortly, for this defect.

PS: Psychopath base-uri() function implementation also has a bug, for which I expect to provide a patch shortly after this patch.


More information:
Comment 1 Mukul Gandhi CLA 2009-05-02 02:45:19 EDT
Created attachment 134146 [details]
patch file for this bug
Comment 2 Mukul Gandhi CLA 2009-05-02 02:46:25 EDT
Created attachment 134147 [details]
test case patch file adding support for this bug
Comment 3 David Carver CLA 2009-05-22 21:04:29 EDT
This patch has been applied and is now in head.  Slight cleanup to the test case patch, but otherwise unchanged.