There is a new element called adoptSelector, which tells the script to move the example translation into the Example element. You can find an example of how it works at http://capybara.ijs.si/janez/elexis/transformDemo.html in the MLDS dictionary.
This means that the UI for the Example transformer needs an additional field where users can enter the xpath of the translation element.
Let's add it under VALUE. It needs to offer the same prefill options as the main element field when you start typing.
The Example transformer has a new JSON specification:
There is a new element called
adoptSelector
, which tells the script to move the example translation into the Example element. You can find an example of how it works at http://capybara.ijs.si/janez/elexis/transformDemo.html in the MLDS dictionary.This means that the UI for the Example transformer needs an additional field where users can enter the xpath of the translation element.
Let's add it under VALUE. It needs to offer the same prefill options as the main element field when you start typing.