Cross-references to topics containing <shortdesc>
elements with cross-references sometimes get link descriptions of ***
#4244
Labels
Milestone
Expected Behavior
When a cross-reference exists in topic 1 to topic 2, and topic 2's
<shortdesc>
contains a second-level<xref>
to topic 3:the link description for topic 1's cross-reference should be computed in the usual way by applying templates to topic 2's
<xref>
element.Actual Behavior
In
topicpullImpl.xsl
, if topic 2's<xref>
contains a/
character, then the<xsl:otherwise>
code branch is taken:and the link text for topic 2's
<xref>
resolves to***
in topic 1's cross-reference link description, as shown by the following HTML:Possible Solution
Reconsider how the
<xsl:choose>
tests are performed.Steps to Reproduce
dita -i map.ditamap -f html5
Here is the instrumented
topicpullImpl.xsl
I used to debug this: topicpullImpl.xsl.zipEnvironment
dita
commandThe text was updated successfully, but these errors were encountered: