Content import for HTML content to create a .ditamap creates a .dita file instead
Issue:
Each time I define a table of content in an index.html and try a HTML document migration it ends up creating a topic .dita instead of the expected .ditamap .
AEM Instance:
AEM 6.5 + SP7 + SP8 + XML Add On v3.8
Issue Description:
Followed the steps from Migrate XHTML documents section of the document https://helpx.adobe.com/content/dam/help/en/xml-documentation-solution/3-8/XML-Documentation-for-Adobe-Experience-Manager_Installation-Configuration-Guide_EN.pdf. According to the docs here, to generate the ditamap you need to include the index.html inside a zip file, which includes links to the other files. Also, define the <ul> and <li> tags with attributes as per recommendation.
However, the dita file that finally gets created from the index.html is a DITA topic with an extension of .dita.