how to return a string in the XPath expresion using an if statement
8130Oct 14 2009 — edited Oct 19 2009Hi,
I´m using XPath to return a value for a conditional Branch in OSB:
What I want to do should be simple but have not worked for me, I want to do an IF statement and to return one value in the then part or another value in else.
if the statement is acomplished I want tu return just a string and if it does not acomplish then in the else return a value from an Xpath expresion:
here something similar of what I´m trying:
if (./imp:iniciarCambio/cambios/bea:ListaDeCambios/bea:Cambio/bea:campoNombre/text() = "Name")
then M6yBilling
else ./imp:iniciarCambio/cambios/bea:companiaTipo/text()
The part that is not working is where I want to return M6yBilling if the statement acomplishes, I have tried "M6yBilling" also 'M6yBilling' and fn:string(M6yBilling) but none is working at all.
I also posted my problem in the XML Forum but with no answer yet, Any ideas?
Kind Regards,
Gerardo J