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

pmercier
Posts: 2
Joined: Tue Feb 25, 2020 4:55 pm

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

Post by pmercier » Tue Feb 25, 2020 5:20 pm

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

Radu
Posts: 7216
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Wed Feb 26, 2020 9:17 am

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

pmercier
Posts: 2
Joined: Tue Feb 25, 2020 4:55 pm

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

Post by pmercier » Wed Feb 26, 2020 3:47 pm

Hi Radu,

Thank you for the input. That worked great!

Best regards,
Pierre

Post Reply