You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Leslier López Nicot <ln...@uci.cu> on 2012/02/16 21:58:00 UTC

Problem with XPath: integer as a result

Hi all.

I'm working with XPAth in a process to obtain the result of the rest of 
two numbers, and with that, call a web service. The problem that I have 
is that the parameter of the web service is *int* but the XPath 
expression give me a double. This is the code:

/<bpel:copy><bpel:from>
<![CDATA[*round(round(number($LimpiezaPLResponse.parameters/xsd:usuario/xsd:saldo)) 
- round(number(10)))*]]>
</bpel:from>
<bpel:to part="parameters" variable="LimpiezaPLRequest3">
<bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
<![CDATA[ns:saldo]]>
</bpel:query>
</bpel:to>

</bpel:copy>/

I try with round, but didn't work either. For example, it returns 60.0.




Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
http://www.antiterroristas.cu
http://justiciaparaloscinco.wordpress.com