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 »
Hello,
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" :
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.
Manuel
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
<elementRenderings>
<render element="p" as="Paragraph"/>
<render element="p" as="Paragraphe" xml:lang="fr"/>
<render element="p" as="Absatz" xml:lang="de"/>
</elementRenderings>
The final context is to be used in the Oxygen component.
Best regards.
Manuel
Re: Localize tag/element name
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.
Regards,
Radu
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.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service