[oXygen-user] author framework, ${selection} variable in ${ask} dialogue

Oxygen XML Editor Support (Radu Coravu) support at oxygenxml.com
Thu Jun 21 07:55:12 CDT 2018

Hi Andreas,

The ask editor variables are quite primitive in interpreting their 
parameters, for example you are required to have simple quotes (') 
around the default value like:

>         ${ask('Wie lautet die Expansion?', generic, '${selection}')}

 From what I tested, after I added the "'" around the ${selection} 
editor variable, this started to work for me.


Radu Coravu
<oXygen/> XML Editor

On 6/20/2018 5:26 PM, Andreas Wagner wrote:
> Hi list,
> I have another question regarding the definitions I am using in my
> author framework:
> In a SurroundWithFragmentOperation I have the following Fragment argument:
> <choice xmlns="http://www.tei-c.org/ns/1.0">
>     <abbr></abbr>
>     <expan resp="${svsal-user}" cert="${ask('Wie gewiss ist die
> Richtigkeit dieser Expansion?', combobox,
> ('high':'hoch';'medium':'mittel';'low':'niedrig';'unknown':'unbekannt'),
> 'high')}">
>         ${ask('Wie lautet die Expansion?', generic, ${selection})}
>     </expan>
> </choice>
> This expands local editor variables such as ${svsal-user} correctly and
> works fine with the dialogues, but it seems to ignore the ${selection}
> variable that I want to use as default value in the last dialogue. The
> textfield that this dialogue displays is empty all the time.
> Is it not supposed to work this way?
> Thanks in advance and best regards,
> Andreas

More information about the oXygen-user mailing list