WebHelp child link whith topic empty titles
Post here questions and problems related to editing and publishing DITA content.
			- 
				NicoAMP
 - Posts: 103
 - Joined: Tue Mar 06, 2018 2:07 pm
 - Contact:
 
WebHelp child link whith topic empty titles
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:
This template tests if a topic/linktext is present or not:
Do you know where topic/linktext is generated in preprocess to complete it with my generated texts?
Thanks.
			
			
									
									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">...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>Thanks.
Nicolas Delobel
AmeXio
nicolas.delobel at amexiogroup.com
						AmeXio
nicolas.delobel at amexiogroup.com
- 
				Radu
 - Posts: 9549
 - Joined: Fri Jul 09, 2004 5:18 pm
 
Re: WebHelp child link whith topic empty titles
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:
Regards,
Radu
			
			
									
									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 ')]">
..............
Radu
Radu Coravu 
<oXygen/> XML Editor
http://www.oxygenxml.com
						<oXygen/> XML Editor
http://www.oxygenxml.com
- 
				NicoAMP
 - Posts: 103
 - Joined: Tue Mar 06, 2018 2:07 pm
 - Contact:
 
Re: WebHelp child link whith topic empty titles
I modified this template through an extension point and it works.
Thanks a lot.
			
			
									
									Thanks a lot.
Nicolas Delobel
AmeXio
nicolas.delobel at amexiogroup.com
						AmeXio
nicolas.delobel at amexiogroup.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