← Prev in month
← Prev in thread
Nested emphasis
Hi, A coworker reported an issue in FO output with a nested emphasis: - <emphasis role="bold"><emphasis>foo</emphasis></emphasis> displays "foo" in regular bold. - <emphasis><emphasis role="bold">foo</emphasis></emphasis> displays "foo" in bold italics. This happens because the template in inline.xsl counts the total number of ancestor emphasis elements when it does not have a @role - notwithstanding the @role attribute on those ancestor. On a related note, is there a reason why this (and some other templates are counting dots in the number generated for the current emphasis, rather than doing a simple count(ancestor::emphasis)? Or in other words, any objections to committing the attached patch? Regards, Alexey.
← Prev in month
← Prev in thread