You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is related to the fix for #3662. Note that the "expected behavior" above comes from DITA-OT 3.5.4, before the original bug was introduced.
chrispy-snps
changed the title
<xsl:message> also recursively prints descendants<xsl:message> of an XML element also recursively prints its descendants
Jul 20, 2022
Indeed looks like a side effect of #3662 @jelovirt I also suspect that the way in which this method iterates "org.dita.dost.util.XMLUtils.toMessageListener(DITAOTLogger)" to output content for all descendants
the code ends up calling "toString()" on all nodes, ancestors and descendants alike and the information is duplicated.
Maybe only the child axis should be iterated?
Expected Behavior
When I use
<xsl:message>
to print an element:and the element being printed has descendant elements in it:
then I expect the element to be printed, serialized as it exists in the document:
Actual Behavior
Somehow the element is printed once normally, then the contents of its descendants are also recursively printed:
Possible Solution
I think this is related to the fix for #3662. Note that the "expected behavior" above comes from DITA-OT 3.5.4, before the original bug was introduced.
Steps to Reproduce
dita install com.debug.message.zip
dita -i topic.dita -f html5 -o out -Dgenerate-debug-attributes=no --verbose
dita uninstall com.debug.message
Environment
dita
commandThe text was updated successfully, but these errors were encountered: