Customizing the DITA map metrics report
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 27
- Joined: Thu Dec 19, 2013 4:34 pm
Customizing the DITA map metrics report
Hi,
I've been able to modify the report.xsl and the report2XHTML.xsl files to re-organize/remove some of the data in the default report (e.g., have a whole list of topics sorted by word count, as opposed to the two lists).
I'd like to take this a step further (if possible) by adding a new column to the existing tables that contain the topic names, which would identify the 'topic type' (concept, task, reference). I had no problem adding the column to the report2XHTML.xsl.
But I'm having trouble getting the data to show up in the column. If this is something that's easy to do, some help would be much appreciated. Even if there was a way to relate all the other data in the report to the topic names, even if it isn't pretty, this would be very helpful.
Thanks!
R.
I've been able to modify the report.xsl and the report2XHTML.xsl files to re-organize/remove some of the data in the default report (e.g., have a whole list of topics sorted by word count, as opposed to the two lists).
I'd like to take this a step further (if possible) by adding a new column to the existing tables that contain the topic names, which would identify the 'topic type' (concept, task, reference). I had no problem adding the column to the report2XHTML.xsl.
Code: Select all
<xsl:template match="oxyd:topMinWords">
<h3>Top min words topics</h3>
<table class="htable">
<tr class="header">
<th>Topic</th>
<th>Words</th>
[b]<th>Topic type</th>[/b]
</tr>
<xsl:apply-templates/>
Thanks!
R.
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Customizing the DITA map metrics report
Hi Ryan,
In the XSLT stylesheeet:
OXYGEN_INSTALL_DIR\frameworks\dita\report\modules\text.xsl
after the lines:
you can add:
and then in the XSLT stylesheet:
OXYGEN_INSTALL_DIR\frameworks\dita\report\report2XHTML.xsl
in the template:
you can add one extra cell in the row like:
Regards,
Radu
In the XSLT stylesheeet:
OXYGEN_INSTALL_DIR\frameworks\dita\report\modules\text.xsl
after the lines:
Code: Select all
<oxyd:characters>
<xsl:value-of select="string-length(normalize-space($topicText))"/>
</oxyd:characters>
Code: Select all
<oxyd:type>
<xsl:value-of select="*[1]/name()"/>
</oxyd:type>
OXYGEN_INSTALL_DIR\frameworks\dita\report\report2XHTML.xsl
in the template:
Code: Select all
<xsl:template match="oxyd:topicText">
Code: Select all
..............
<td>
<xsl:value-of select="oxyd:type"/>
</td>
</tr>
..............
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service