Skip to content
Obtain different metrics from a DITA map
XSLT
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data Updates Jun 24, 2019
evolution Generate a DITA topic containing metric evolutions. May 4, 2019
modules Initial DITA Metrics Report scripts as taken from oXygen @ Feb 14, 2017. Feb 14, 2017
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Oct 16, 2018
CONTRIBUTING.md
LICENSE Use MPL 2.0 for the project license. Feb 14, 2017
README.md Update README.md Oct 16, 2018
build_metrics.xml Updates Jun 24, 2019
ditaMetricsReport.xpr
expandMapRefs.xsl
integrator.xml Also allow report to be used as a DITA OT plugin. Mar 9, 2017
plugin.xml Updates Jun 24, 2019
report.xsl
report2XHTML.xsl Updates Jun 24, 2019

README.md

DITA Metrics Report

Obtain different metrics from a DITA map.

The project can be used as a DITA OT plugin. Just copy the entire "dita-metrics-report" folder to the DITA OT "plugins" folder and run the integrator.

Or you can apply the XSLT processing directly. Applying the XSLT stylesheets requires an XSLT 2.0 processor (Saxon 9) and the publishing is done in two stages:

  • The report.xsl XSLT stylesheet is applied on the main DITA Map. This produces a special XML document containing all the report data.
  • Then the report2XHTML.xsl XSLT stylesheet is applied on that XML output to produce the HTML output.

A short description of each reported metric can be found below:

  • Total number of maps and topics which are part of the project.
  • Total number of elements used in topics and maps along with a table presenting all element names and their usage counter.
  • The used elements used from each DITA domain.
  • Total number of attributes used in topics and maps along with a table presenting all attribute names and their usage counter.
  • Statistics about the conditional attributes used in the project.
  • Information about content reuse.
  • Text and content statistics, including both total words (word count) and unique words (vocabulary).
  • Tables containing list of largest and smallest topics and the number of words each one used.
  • Table containing a listing of all links to resources outside of the project.

Copyright and License

Copyright 2018 Syncro Soft SRL.

This project is licensed under MPL 2.0, see the LICENSE file for details.

You can’t perform that action at this time.