Page 1 of 1

How to get individual word count for hundreds of files in a ditamap

Posted: Tue Feb 25, 2020 5:20 pm
by pmercier
Hi,
How can we get the word count of each file in a ditamap that contains hundreds of files? We ran the DITA Map Metrics Report, but we only get a list of 21 files with their word count (11 from the "Top max words topics" section, and 10 from the "Top min word topics" section).
Thanks,
Pierre

Re: How to get individual word count for hundreds of files in a ditamap

Posted: Wed Feb 26, 2020 9:17 am
by Radu
Hi Pierre,

In the XSLT stylesheet:

OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT3.x/plugins/com.oxygenxml.dita.metrics.report/report.xsl

there is this parameter:

Code: Select all

<xsl:param name="topX" select="10"/>
maybe you can set it to a very high value, higher than the number of topics in your manual.

Regards,
Radu

Re: How to get individual word count for hundreds of files in a ditamap

Posted: Wed Feb 26, 2020 3:47 pm
by pmercier
Hi Radu,

Thank you for the input. That worked great!

Best regards,
Pierre