How to override toc2map for ditamap generation with attributes? | Community
Skip to main content
Level 2
September 8, 2021

How to override toc2map for ditamap generation with attributes?

  • September 8, 2021
  • 1 reply
  • 949 views

AEM Instance:
AEM 6.5 + SP7 + SP8 + XML Add On v3.8

Query:
We have a requirement to get the additional attributes (formattopicchunk) added to the auto generated ditamap (from an uploaded index.html). While I was able to get these to reflect by making changes directly to /etc/fmdita/html2dita/toc2map.xsl

What would be the right approach to override this file? I tried an override at  /apps/fmdita/config/html2dita/toc2map_extended.xsl but that didn't quite work. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

DivrajSingh
Adobe Employee
Adobe Employee
October 25, 2021

The file toc2map.xsl is not extensible as of today.

If you intend to add same attribute values to the generated ditamap you may want to do this via post conversion event handler - you can refer to section "Conversion process event handler" of the API guide  (page 41)