Customizing the DITA Map Metrics Report

Here should go questions about transforming XML with XSLT and FOP.
ckabstein
Posts: 142
Joined: Fri Apr 24, 2015 12:28 pm

Customizing the DITA Map Metrics Report

Post by ckabstein »

Hi,

I would like the DITA Map Metrics Report to count the words not only from one ditamap, but from all ditamaps within the project. I have one main ditamap that includes submaps as chapters. At the moment, texts of submaps are not included in the search, only the current file content, which is clear from the setting made for the current transformation scenario {currentFile URL}. What do I need to customize to count all content?

Thanks,
Christina
oXygen XML Editor 25.0 build 2023013006
DITA OT 3.7.3
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing the DITA Map Metrics Report

Post by Radu »

Hi Christina,

The DITA Map Metrics report starts from one DITA Map but if it includes other maps inside it, it will also navigate those maps and referenced topics so it should produce a report based on the entire hierarchy of maps and topics which are referenced starting from the main DITA Map on which you run the report...

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ckabstein
Posts: 142
Joined: Fri Apr 24, 2015 12:28 pm

Re: Customizing the DITA Map Metrics Report

Post by ckabstein »

Yes, that's true, but the text content of the submaps is not counted. For the Text Information part, the report returns 0.
oXygen XML Editor 25.0 build 2023013006
DITA OT 3.7.3
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing the DITA Map Metrics Report

Post by Radu »

Hi Christina,

This might depend on the actual DITA Map structure you have.
In the samples I tested on my side, the Text information category properly counted all the text content in all directly or indirectly referenced topics.
If it would be possible for you to create a sample DITA Map project which exhibits the problem you could email it to us (support@oxygenxml.com) and we'll see if we can improve the metrics report generation.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply