Transformation Scenario ${xpath_eval} and regex
Posted: Thu Nov 07, 2019 11:18 am
I am using editor variable ${xpath_eval} within a transformation output scenario Save As box, because I want to tweak the base uri of the input before sending it to output. But when I do something like this...
...I get an error. The line has been interpreted as asking for the file to be saved at `${pd}/${base-uri()}` (if such an editor variable existed). When I open up the transformation scenario I see that the formula has been changed to this...
It works fine if I change \w to something like [a-zA-Z0-9].
I assume that oXygen is normalizing path separators. Is there any way to exempt backslashes that are in an {$xpath_eval}?
Code: Select all
${pd}/${xpath_eval(replace(base-uri(),'.+/(\w+).+','$1'))}.html
Code: Select all
${pd}/${xpath_eval(replace(base-uri(),'.+/(/w+).+','$1'))}.html
I assume that oXygen is normalizing path separators. Is there any way to exempt backslashes that are in an {$xpath_eval}?