On 07/06/2015 08:16 PM, Julie McHam wrote:
How would I change the text of the “Example” section in a task topic
(i.e., the section created with the <example> element)? It is not
included in the en.xml file (top portion of the file shown below). I
have only changed text labels in this file, and have made no additions
or deletions. I would like to use that element, but for a different
purpose, but cannot because I cannot figure out how to change the title
of that section.
<?xml version="1.0" encoding="UTF-8"?>
<messagesxml:lang="en">
<!-- Task sections -->
<messagename="prereq">Before you begin</message>
<messagename="context">Procedure summary</message>
<messagename="steps">Procedure steps</message>
<messagename="result">Procedure results</message>
<messagename="postreq">What to do next</message>
An <example> element is not considered by us to be a "task section".
For us, it's a general purpose "display object" like figure or table.
That's why you'll find its default title a little below in
<ditac_install_dir>/xsl/common/messages/en.xml[*]:
---
...
<!-- Formal objects -->
<message name="figure">Figure</message>
<message name="table">Table</message>
<message name="example">Example</message>
<!-- Note labels -->
<message name="note">Note</message>
...
---
This being said, if you want to change default title "Example" to
something else only when <example> is a descendant of <task>, then
you'll have to customize the XSLT stylesheets for that. How to do that
is out of the scope of the standard support provided by XMLmind.
---
[*] If you use XMLmind XSL Utility, you'll find English messages in:
<xslutil_install_dir>/addon/config/dita/xsl/common/messages/en.xml
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support