Arnaud N. wrote:
The XHTML publication generates a TOC file. Is there a way to get an index instead ? I did not find how to configure this output option.


Sorry. I forgot that you seem to author DITA documents.

If you want to generate a "back-of-the-book index",

1) you must insert <indexterm> elements in your DITA topics. Simplest example:
---
<p>It is possible to include math <indexterm>MathML</indexterm> in a DITA document either by reference or by inclusion.</p>
---

<indexterm> may be inserted/modified using "Topic|Insert or Edit indexterm". See https://www.xmlmind.com/xmleditor/_distrib/doc/dita/topic_reference.html#dita_indexterm_editor


2) a) If you use DITA *map*s, select "Options|Customize Configuration|Preprocessing Options", and in the "Index:" combobox of the dialog box (see attached screenshot), select "Generate as frontmatter" or "Generate as backmatter".

Please do this for all the output formats you need to generate. In attached screenshot, I did this for "Convert to single-page XHTML".

More info: https://www.xmlmind.com/xmleditor/_distrib/doc/dita/preprocess_options.html#com.xmlmind.xmleditext.dita.PreprocessingOptionsEditor


b) If you use DITA *bookmap*s, please add a <backmatter>/<booklist> element containing an <indexlist> element. Our "XXE_install_dir/demo/dita/dita-sample.ditamap" example:

---
   <backmatter>
     <booklists>
       <glossarylist chunk="to-content" navtitle="Sample glossary">
         <topicref href="dita-sample/glossentry1.dita"/>

         <topicref href="dita-sample/glossentry2.dita"/>

         <topicref chunk="to-content" href="dita-sample/glossgroup1.dita"/>
       </glossarylist>

       <indexlist locktitle="yes" navtitle="Not an extensive index"/>
     </booklists>
   </backmatter>
---



---
PS: The command-line tool xxeconvert is XMLmind XML Editor without a GUI. You may want to use it to automate your publications. Example:

---
xxeconvert -profile product_files/XXE.ditaval \
   -p use-note-icon yes \
   -p xref-auto-text "number text" \
   -p mark-external-links yes \
   -p mathjax auto \
   dita.toXHTML help.ditamap -u /tmp/out/
---

More info: https://www.xmlmind.com/xmleditor/_distrib/doc/xxeconvert/index.html

The XSLT stylesheets parameters (like "-p use-note-icon yes") supported by ditac, our DITA engine (https://www.xmlmind.com/ditac/what_is_ditac.html; which is completely different from the DITA Open Toolkit) are documented here: https://www.xmlmind.com/ditac/_distrib/doc/manual/xsltParams.html#xsltParams
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to