dita — archive
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
— [Date Index]
| [Thread Index]
| [Month Index]
| [List Home]
FW: [oasis-tcs/dita-lwdita] Cannot create inline graphics in HTML5 output (Issue #60)
FYI.
Kris
From: DTC-tobin <[email protected]>
Sent: Monday, April 11, 2022 12:22 AM
To: oasis-tcs/dita-lwdita <[email protected]>
Cc: Subscribed <[email protected]>
Subject: [oasis-tcs/dita-lwdita] Cannot create inline graphics in HTML5 output (Issue #60)
Due to the limitations on LwDITA, every <image> element includes a trailing
<br> element when the data is converted to HTML5 such as follows:
DITA source
<p>The system has a malfunction.
<image href= height="29.000pt" width="42.999pt" /> (warning indicator: Yellow)</p>
HTML5 output
<p class="p">The system has a malfunction.
<img class="image" height="39" src= width="57"><br> (warning indicator: Yellow)</p>
It looks like this is due to no support for the @placement attribute in LwDITA.
In the dita2html5 plugin, there is the following transformation in
topic.xsl (lines 1375 and 1376 in the Git repository):
<!-- build any post break indicated by style -->
<xsl:if test="not(@placement = 'inline')"><br/></xsl:if>
Since there is no @placement attribute, this condition can never be true, and all images are rendered with a line break after essentially making inline images impossible.
Reply to this email directly, view it on GitHub , or
unsubscribe .
You are receiving this because you are subscribed to this thread. Message
ID: < oasis-tcs/dita-lwdita/issues/[email protected] >
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
— [Date Index]
| [Thread Index]
| [Month Index]
| [List Home]