Generate text for collection-type="choice"
Posted: Fri Jul 17, 2020 12:06 am
How can I extend Webhelp Responsive to generate text above the child links for collection-type="choice"? This text would say something like, "Please chose from the following options." The author's intent is to have a user choose from one of the nested topics, but that is not clear in the generated output.
Here is the context of the source ditamap.
When I published I noticed that t_parentTask.dita in the temp folder includes the collection-type="choice" in the linkpool element.
But the html output doesn't include any collection-type information.
Is there a way to pass the collection-type="choice" value to the HTML output? If so, I think I can use CSS to generate text.
However, my preference would be to use a string file and include it within an XSL template. Any suggestions which template to start with?
Thanks,
Leroy Steinbacher
Here is the context of the source ditamap.
Code: Select all
<topicref href="t_parentTask.dita" collection-type="choice">
<topicref href="t_choice1.dita"/>
<topicref href="t_choice2.dita"/>
<topicref href="t_choice3.dita"/>
</topicref>
Code: Select all
<linkpool class="- topic/linkpool " collection-type="choice" xtrc="topicref:2;55:73" xtrf="file:/C:/dita-ot-3.4-Dev/samples/Test/bm_test.ditamap">
<link class="- topic/link " format="dita" href="t_choice1.dita" mapclass="- map/topicref " role="child" scope="local" type="task" xtrc="topicref:3;56:50" xtrf="file:/C:/dita-ot-3.4-Dev/samples/Test/bm_test.ditamap">
<?ditaot usertext?>
<linktext class="- topic/linktext ">
<?ditaot gentext?>Choice 1</linktext>
</link>
<link class="- topic/link " format="dita" href="t_choice2.dita" mapclass="- map/topicref " role="child" scope="local" type="task" xtrc="topicref:4;57:50" xtrf="file:/C:/dita-ot-3.4-Dev/samples/Test/bm_test.ditamap">
<?ditaot usertext?>
<linktext class="- topic/linktext ">
<?ditaot gentext?>Choice 2</linktext>
</link>
<link class="- topic/link " format="dita" href="t_choice3.dita" mapclass="- map/topicref " role="child" scope="local" type="task" xtrc="topicref:5;58:50" xtrf="file:/C:/dita-ot-3.4-Dev/samples/Test/bm_test.ditamap">
<?ditaot usertext?>
<linktext class="- topic/linktext ">
<?ditaot gentext?>Choice 3</linktext>
</link>
</linkpool>
Code: Select all
<div class=" wh_child_links ">
<nav role="navigation" class="- topic/related-links related-links">
<ul class="ullinks">
<li class="- topic/link link ulchildlink"><strong><a href="t_choice1.html">Choice 1</a></strong></li>
<li class="- topic/link link ulchildlink"><strong><a href="t_choice2.html">Choice 2</a></strong></li>
<li class="- topic/link link ulchildlink"><strong><a href="t_choice3.html">Choice 3</a></strong></li>
</ul></nav></div>
However, my preference would be to use a string file and include it within an XSL template. Any suggestions which template to start with?
Thanks,
Leroy Steinbacher