Open raducoravu opened 6 years ago
As a possible workaround in the "flatten.xsl" in all places where "topic/div" is mentioned we should also add "topic/desc".
My suggested fix is not OK, if implemented this kind of project (which has a "desc" inside an xref) would start generating invalid word documents: https://github.com/jelovirt/com.elovirta.ooxml/files/1512896/liWithPInside.zip
Basically the "desc" element is block when it is a child of table and fig but it is inline when it is a child of "link" and "xref"
So in the XSLT stylesheet "com.elovirta.ooxml/docx/word/document.utils.xsl "the functions "x:block-content" and "x:is-block" could add something like:
or (contains($class, ' topic/desc ') and ($element/parent::table or $element/parent::fig))
👍 Reported also by Leigh White on DITA Users List: https://groups.yahoo.com/neo/groups/dita-users/conversations/topics/43927
I'm attaching a DITA Map which refers to a concept file containing a "fig" with a "desc" inside it. Somehow the generated Word document is invalid. I tested also with the "develop" branch.
figWithDesc.zip