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...
Code: Select all
${pd}/${xpath_eval(replace(base-uri(),'.+/(\w+).+','$1'))}.html
...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...
Code: Select all
${pd}/${xpath_eval(replace(base-uri(),'.+/(/w+).+','$1'))}.html
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}?