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

Bug 320535

Summary: XPath validator does not recognize return types of XPath functions
Product: z_Archived Reporter: Robert Brodt <bbrodt>
Component: BPELAssignee: BPEL Validation Inbox <bpel.validation-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: grid.qian
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
path for XPathValidator.java bbrodt: iplog+

Description Robert Brodt CLA 2010-07-21 13:16:26 EDT
Build Identifier: 20100617-1415

Valid expression such as:

<condition>starts-with($purchaseOrder.purchaseOrder/po:orderDescription, 'OrderVal')</condition>

are incorrectly reported as errors. 

Workaround is to change the expression to use an equality operator like so:

<condition>starts-with($purchaseOrder.purchaseOrder/po:orderDescription, 'OrderVal') = true()</condition>

Reproducible: Always

Steps to Reproduce:
1. create "if"
2. insert a function that returns bool in the condition
3. see the error msg
Comment 1 Robert Brodt CLA 2010-07-21 13:29:50 EDT
Created attachment 174884 [details]
path for XPathValidator.java
Comment 2 Robert Brodt CLA 2010-07-21 17:48:41 EDT
https://jira.jboss.org/browse/JBIDE-5999
Comment 3 grid.qian CLA 2010-07-23 01:54:45 EDT
apply and test the patch from Bob
Comment 4 Robert Brodt CLA 2012-04-18 15:04:20 EDT
Comment on attachment 174884 [details]
path for XPathValidator.java

Updated iplog flag for v1.0 release review.