Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to return a string in the XPath expresion using an if statement

8130Oct 14 2009 — edited Oct 19 2009
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2009
Added on Oct 14 2009
7 comments
1,006 views