Need a simple 'Search & replace' Xpath function

Need a simple 'Search & replace' Xpath function

book

Article ID: KB0087667

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Currently there is enhancement that is logged for the same. The enhancement ID is 1-RS80X.

I created a project that does this in two ways.  One way is with a
complicated XPath:

substring-after(tib:concat-sequence(for $var in
tib:tokenize($Map-Data/root/string, "f")
return (if (tib:left($var, 2)="oo") then concat("NEWFOO",
substring-after($var,"oo")) else concat("f", $var))),'f')

The other is a process that uses simpler XPath but requires a process
variable and repeat-until-true group.

Both should work; I'm not sure which is more efficient.  I think a Java
activity would be the simplest thing, but it can be done with XSLT.


Issue/Introduction

Need a simple 'Search & replace' Xpath function

Attachments

Need a simple 'Search & replace' Xpath function get_app