Localize tag/element name

Post here questions and problems related to oXygen frameworks/document types.
Posts: 6
Joined: Tue May 14, 2013 6:57 pm

Localize tag/element name

Post by Vangelis31 » Thu Sep 07, 2017 3:47 pm


Currently it's possible to change (in cc_config.xml) the name of an element base on an attribute inside the document as described in "https://www.oxygenxml.com/doc/versions/ ... uthor.html" :

Code: Select all

<render element="p" as="Paragraph"/>
<render element="p" as="Paragraphe" xml:lang="fr"/>
<render element="p" as="Absatz" xml:lang="de"/>
We are looking for a way to render the element name based on the language of the application as describded in "https://www.oxygenxml.com/doc/versions/ ... e-language" and not based on an attribute of an element.

The final context is to be used in the Oxygen component.

Best regards.


Posts: 6511
Joined: Fri Jul 09, 2004 5:18 pm

Re: Localize tag/element name

Post by Radu » Fri Sep 08, 2017 9:07 am

Hi Manuel,

This does work the way you want it to work.
So depending on the language defined for the Oxygen UI, Oxygen will pick up from the cc_config.xml the proper rendering if it has been tagged with the corresponding xml:lang value.
So for the example above, if Oxygen's UI is in German, "Absatz" will be used as a rendering for the paragraph.

Radu Coravu
<oXygen/> XML Editor

Post Reply