On 10/07/2019 08:04 PM, Julie McHam wrote:
I have used the following header variables when transforming DITA to
DOCX files with great success:



·         header-left = {{document-title}}

·         header-right = toc:: Contents;;  figurelist:: Contents;;
tablelist:: Contents;; abbrevlist:: Acronyms;; preface:: Preface;;
glossarylist:: Glossary;; indexlist:: Index;; {{chapter-title}}toc::
Contents;; figurelist:: Contents;; tablelist:: Contents;; abbrevlist::
Acronyms;; preface:: Preface;; glossarylist:: Glossary;; indexlist::
Index;; {{chapter-title}}



I was asked to remove the document title, place the chapter title in the
header-left area, and then add topic title in the header-right area. I
copied all the header-right values to header-left, and that part works
fine. However, I put {{topic-title}} in header-right, but nothing
appears. I have checked your documentation and I am pretty sure that is
the correct parameter to use. Is there something else I need to do for
the topic title to appear in the header-right area?




That's right:

-p header-right "{{topic-title}}"

is correct and works great if you convert DITA to PDF, but does not work when you convert DITA to DOCX.

This is in fact an XMLmind XSL-FO Converter limitation, not a ditac bug.

Unlike Apache FOP or RenderX XEP which are used to generate PDF, XMLmind XSL-FO Converter, which is used to generate DOCX, does not support:

- fo:marker
- fo:retrieve-marker

See https://www.xmlmind.com/foconverter/conformance.html

Note that {{topic-title}} and {{section1-title}} are implemented using fo:marker and fo:retrieve-marker while {{document-title}} and {{chapter-title}} are implemented using simpler means.

Sorry for this XMLmind XSL-FO Converter limitation. We currently don't see how to remove it.









--
XMLmind FO Converter Support List
[email protected]
https://www.xmlmind.com/mailman/listinfo/xfc-support

Reply via email to