Problem evaluating boolean in XSLT
Hi,
I am running into a wierd problem. I have a small BPEL process with input schema as shown below.
<element name="testIssuesProcessRequest">
<complexType>
<sequence>
<element name="boolValue" type="boolean"/>
<element name="dateValue" type="date"/>
<element name="timeValue" type="time"/>
</sequence>
</complexType>
</element>
In my BPEL process I have a switch statement which checks the value of boolValue and takes the appropriate path. The problem is this variable is always evaluating to true(I tried using true, false, 0, 1). The function I am using is
bpws:getVariableData('inputVariable','payload','/client:testIssuesProcessRequest/client:boolValue')
I tried the similar approach in XSLT and it is the problem
/ns1:testIssuesProcessRequest/ns1:boolValue = true()
I am not sure what I am missing. Is there a different way to treat boolean values
in xslt? Any pointers will be of great help.
Thanks
Raj