Testing the input map name
Posted: Wed Apr 20, 2016 12:06 am
Hi,
I'd like to add a link to the top of the webhelp TOC. If my input map is called foo.ditamap, I want the link to point to the output of bar.html. If my input map is called bar.ditamap, I want the link to point to the output of foo.html. So far I have this, but I'm not sure what I am able to test:
Can I access from within the Webhelp transform? If so, then I can test based on that. I have looked in the transform and I can't see where you parse it at all.
I'd like to add a link to the top of the webhelp TOC. If my input map is called foo.ditamap, I want the link to point to the output of bar.html. If my input map is called bar.ditamap, I want the link to point to the output of foo.html. So far I have this, but I'm not sure what I am able to test:
Code: Select all
<div id="toggle_foo_or_bar_link">
<xsl:choose>
<xsl:when test="">
<p>You are viewing the Foo docs. View the <a href="bar.html" target="_blank">Bar</a> docs instead.</p>
</xsl:when>
<xsl:otherwise>
<p>You are viewing the Bar docs. View the <a href="foo.html" target="_blank">Foo</a> docs instead.</p>
</xsl:otherwise>
</xsl:choose>
</div>
Code: Select all
dita.input.filename