How to show indexterms in DocBook 5 Webhelp
-
- Posts: 2
- Joined: Thu Oct 25, 2012 9:48 pm
How to show indexterms in DocBook 5 Webhelp
In DocBook5 using the DocBook Webhelp transformation I would like to get all indexterms to not only appear in the index but also to display in the flow of the generated HTML. Would this be possible through an ANT parameter similar to DITA args.indexshow, a CSS property, or perhaps some other means?
My DocBook v5 XML source looks like this:
After DocBook WebHelp, my HTML output looks like:
I want the HTML output to look like:
So that "black dog" is both an index term and also shows up as text in the HTML.
Thanks,
Craig Westling
My DocBook v5 XML source looks like this:
Code: Select all
<para>I walked a <indexterm><primary>black dog</primary></indexterm> in the park yesterday.</para>
Code: Select all
<p>I walked a <oxygen:indexterm xmlns:oxygen="http://www.oxygenxml.com/ns/webhelp/index" primary="black dog"/> in the park yesterday.</p>
Code: Select all
<p>I walked a <oxygen:indexterm xmlns:oxygen="http://www.oxygenxml.com/ns/webhelp/index" primary="black dog"/>black dog in the park yesterday.</p>
Thanks,
Craig Westling
Craig Westling
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: How to show indexterms in DocBook 5 Webhelp
Post by sorin_ristache »
Hi Craig,
This can be done with the following modification: please add the following code at the end of the template with the attribute match="d:indexterm" in file OXYGEN_INSTALL_DIR\frameworks\docbook\xsl\com.oxygenxml.webhelp\xsl\docbook\chunk_custom.xsl:
This can be done with the following modification: please add the following code at the end of the template with the attribute match="d:indexterm" in file OXYGEN_INSTALL_DIR\frameworks\docbook\xsl\com.oxygenxml.webhelp\xsl\docbook\chunk_custom.xsl:
Code: Select all
<xsl:if test="d:primary">
<xsl:text> </xsl:text><xsl:value-of select="d:primary"/>
</xsl:if>
<xsl:if test="d:secondary">
<xsl:text> </xsl:text><xsl:value-of select="d:secondary"/>
</xsl:if>
<xsl:if test="d:tertiary">
<xsl:text> </xsl:text><xsl:value-of select="d:tertiary"/>
</xsl:if>
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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