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

Post here questions and problems related to editing and publishing DITA content.
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 »

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: 9439
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 »

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 »

Hi Radu,

Thank you for the input. That worked great!

Best regards,
Pierre
Post Reply