OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

dita-lightweight-dita message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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: dita-lightweight-dita@lists.oasis-open.org <dita-lightweight-dita@lists.oasis-open.org> On Behalf Of kris eberleinconsulting.com
Sent: Monday, April 11, 2022 10:39 AM
To: dita <dita@lists.oasis-open.org>
Cc: dita-lightweight-dita@lists.oasis-open.org
Subject: [dita-lightweight-dita] FW: [oasis-tcs/dita-lwdita] Cannot create inline graphics in HTML5 output (Issue #60)

 

FYI.

 

Kris

 

From: DTC-tobin <notifications@github.com>
Sent: Monday, April 11, 2022 12:22 AM
To: oasis-tcs/dita-lwdita <dita-lwdita@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
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/60@github.com>



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]