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

Bug 341862

Summary: [xpath2] improvements to computation of typed value of xs:boolean nodes
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-04-05 01:21:04 EDT
Build Identifier: I20090313-0100

It seems that PsychoPath engine has following bug:

For such a node,

<X>1</X> (element 'X' is of type xs:boolean)

or <X att="1" />   (attribute 'att' is of type xs:boolean)

The following XPath expressions,

X = true()

OR

X/@att = true()

do not return right results. The current PsychoPath implementation returns false for these comparisons (there seems to be a bug in computing typed values of xs:boolean nodes, when the boolean lexical form "1" is present in an instance document).

I'll shortly be committing a fix for this, along with a test case.

Reproducible: Always
Comment 1 Mukul Gandhi CLA 2011-04-05 02:12:59 EDT
i've committed the changes for this bug to HEAD and service branch, along with a commit for test case.

i'm marking this bug report as resolved.
Comment 2 Mukul Gandhi CLA 2011-04-05 02:15:17 EDT
@Jesper: would you please integrate this change into the PsychoPath engine build.