[oXygen-user] author action - value parameter question(s)

Oxygen XML Editor Support support at oxygenxml.com
Wed Oct 23 06:48:34 CDT 2013

Hi Andreas,

About question (b):
But if your goal is to allow users to edit all attributes anyway why are 
you not using our Attributes view or our in-place attributes editor 
dialog (ALT-ENTER keyboard shortcut)?

Unfortunately our editor variables support is quite limited so you 
cannot do (a) and (c) using editor variables. So you would have to 
implement a custom operation in Java which would look at the current 
attribute value, show a dialog to the user and then use our API to set 
the attribute on the element:


If you implement a custom operation on the other hand you can also use 
the internationalization support provided by our API:


Of course if you implement a custom Java operation you can gather all 
attributes from the element and present them in a serialized form in a 
text field and then set them back using the API, so you could also fix 
(b) this way.


Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger

On 10/23/2013 12:25 PM, Andreas Wagner wrote:
> Dear list,
> this is my first dabble with a document type framework and with the
> list, so please be lenient.
> a) I want to create an author mode action in order to change a certain
> attribute.
> I am using the
>    ro.sync.ecss.extensions.commons.operations.ChangeAttributeOperation
> operation and have set the value attribute to
>    ${ask('break=',combobox,('yes';'no';'maybe';'':'null'),'')}
> Now I would like to set the default value not to some static default but
> to what is currently present in the attribute.
> Is there some way to get the value of this attribute in the action's
> parameter definition?
> b) On a related note, is there a Operation in place that would allow me
> to just edit whatever is there as attributes in the current element - as
> one long, free-text string? The ChangeAttributeOperation seems to be
> able to change only one attribute, so for editing several attributes of
> one and the same element I have to define different actions and trigger
> them separately...?
> c) Finally, I would like to use i18n inside of the ask() variable, say
> for the message part. Is that possible?
> Sorry for asking three questions at once, I just hope they are so
> closely related that it makes sense to do it this way.
> Thanks and all the best,
> Andreas

More information about the oXygen-user mailing list