WebHelp child link whith topic empty titles

NicoAMP
Posts: 22

WebHelp child link whith topic empty titles

Tue Feb 05, 2019 11:50 am

Hi,

Oxygen WebHelp plugin permit to display "child link" through webhelp.show.child.links parameter.

When a subtopic have an empty title (<title/>), a blank appear in this child link list.

I would like to generate automatically a title in this list (when is empty) depends on topic type : "Concept topic" for Concept, "Tasks topic" for Tasks, etc.

I saw that list is generated here in plugins\org.dita.html5\xsl\rel-links.xsl:

Code: Select all

<!--basic child processing-->
<xsl:template match="*[contains(@class, ' topic/link ')][@role = ('child', 'descendant')]" priority="2" name="topic.link_child">...


This template tests if a topic/linktext is present or not:

Code: Select all

 <!--use linktext as linktext if it exists, otherwise use href as linktext-->
          <xsl:choose>
            <xsl:when test="*[contains(@class, ' topic/linktext ')]">
              <xsl:apply-templates select="*[contains(@class, ' topic/linktext ')]"/>
            </xsl:when>
            <xsl:otherwise>
              <!--use href-->
              <xsl:call-template name="href"/>
            </xsl:otherwise>
          </xsl:choose>


Do you know where topic/linktext is generated in preprocess to complete it with my generated texts?

Thanks.
Radu
Posts: 6044

Re: WebHelp child link whith topic empty titles

Thu Feb 07, 2019 12:50 pm

Hi Nico,

I think the stylesheet you are looking for is this one:

OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT3.x/xsl/preprocess/topicpullImpl.xsl

probably this template:

Code: Select all

<xsl:template match="*[contains(@class, ' topic/link ')]">
..............


Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
NicoAMP
Posts: 22

Re: WebHelp child link whith topic empty titles

Thu Feb 21, 2019 7:02 pm

I modified this template through an extension point and it works.

Thanks a lot.

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest