There are scenario’s where Xpaths can become quite elaborate, especially when conditionals are involved. A good example is the creation of custom filters. In that case, one could have an Xpath constraint like this:
[$FilterHelper/SearchAtt1 = empty or contains(Att1, $FilterHelper/SearchAtt1] [$FilterHelper/SearchAtt2 = empty or Att2 = $FilterHelper/SearchAtt2] [$FilterHelper/SearchAtt3 = empty or Att1 >= $FilterHelper/SearchAtt3] …
In addition, it could be that one would like to reuse (parts of) Xpath conditions.
For both scenarios, it would be great if one could use String concatenation to build up an Xpath and use the resulting String as the Xpath condition.