OASIS Open Mailing List Archives  ·  All Lists  ·  dita-lightweight-dita  ·  2022-04

dita-lightweight-dita — archive

[Date Prev]  |  [Thread Prev]  |  [Thread Next]  |  [Date Next]   —  [Date Index]  |  [Thread Index]  |  [Month Index]  |  [List Home]

Re the GitHub issue


We discussed this at yesterday s TC meeting we missed you, Frank! I asked whether anyone knew whether this had been discussed as part of LwDITA design, but no one present knew. Our general consensus was the following: The default value for the @placement attribute is inline, so it looks as if this DITA-OT plug-in is incorrectly handling LwDITA. Folks authoring LwDITA content can always get the effect of placement= break by enclosing an image in a <p> element. FYI Just as we religiously respond to comments that come through the DITA comment list, I think we also need to respond to folks who attempt to communicate with the TC using GitHub issues. I ve added response to the GitHub issue, but did not close it. Best, Kris From: [email protected] <[email protected]> On Behalf Of kris eberleinconsulting.com Sent: Monday, April 11, 2022 10:39 AM To: dita <[email protected]> Cc: [email protected] Subject: [dita-lightweight-dita] 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]