Task labels in HTML5 output
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 18
- Joined: Wed Feb 22, 2017 8:04 pm
Task labels in HTML5 output
Hello,
I'd like to change the "Before you begin" task label to "Prerequisites" in HTML5 output from DITA. I am using Oxygen 19, DITA-OT 2.4.4 that was installed with Oxygen. Where does this string get pulled from for HTML5 output?
I noticed a few of the plugins have localization folders that seem to contain the task label strings, but I didn't see one for HTML5.
Thanks.
K
I'd like to change the "Before you begin" task label to "Prerequisites" in HTML5 output from DITA. I am using Oxygen 19, DITA-OT 2.4.4 that was installed with Oxygen. Where does this string get pulled from for HTML5 output?
I noticed a few of the plugins have localization folders that seem to contain the task label strings, but I didn't see one for HTML5.
Thanks.
K
-
- Posts: 407
- Joined: Mon Dec 05, 2011 6:08 pm
Re: Task labels in HTML5 output
Hi,
To modify the task label from 'Before you begin' to 'Prerequisites' in the HTML5 output from a DITA source you should follow the
Modifying or adding generated text > modifying existing strings procedure from DITA-OT documentation:
http://www.dita-ot.org/2.4/dev_ref/plug ... dtext.html
In short, to achieve this you need to create a DITA-OT plugin in [OXYGEN_INSTALL_DIR]/frameworks/dita/DITA-OT2.x/plugins.
Regards,
Ionela
To modify the task label from 'Before you begin' to 'Prerequisites' in the HTML5 output from a DITA source you should follow the
Modifying or adding generated text > modifying existing strings procedure from DITA-OT documentation:
http://www.dita-ot.org/2.4/dev_ref/plug ... dtext.html
In short, to achieve this you need to create a DITA-OT plugin in [OXYGEN_INSTALL_DIR]/frameworks/dita/DITA-OT2.x/plugins.
- So, you should first create a folder such as:
[OXYGEN_INSTALL_DIR]/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.customstrings - The 'Before you begin' label is found in [OXYGEN_INSTALL_DIT]/dita/DITA-OT2.x/xsl/common/strings-en-us.xml.
You can start from this file and create a custom-string-en-us.xml with a code similar with:Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<strings xml:lang="en-us">
<str name="task_prereq"Before you begin MODIFIED</str>
</strings> - Then, you should create an XML file my-strings.xml that refers the custom file previously created for that specific language (en-us in this case) :
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<langlist>
<lang xml:lang="en-us" filename="custom-strings-en-us.xml"/>
</langlist> - After that, in the plugin directory you need to create a plugin.xml that refers the my-strings.xml file previously created:
Make sure that all these 3 files: custom-strings-en-us.xml, my-strings.xml and plugin.xml are saved in your DITA-OT plugin directory (e.g. com.oxygenxml.customstrings).
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="com.oxygenxml.customstrings">
<feature extension="dita.xsl.strings" file="my-strings.xml"/>
</plugin> - Run the predefined transformation scenario called Run DITA OT Integrator by executing it from the Apply Transformation Scenario(s) dialog box. Note that you need to run oXygen with administrative rights when you run the Integrator.
The DITA OT Integrator should be run when you have finished the customizations and this way the plugin is added to your DITA-OT deployment. - Edit the DITA Map HTML5 transformation scenario and set the parameters args.gen.task.lbl to YES and the default.language to the language defined in the my-strings.xml (en-us).
- Run the DITA Map HTML5 transformation scenario to produce the HTML5 output.
Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
Return to “DITA (Editing and Publishing DITA Content)”
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