On 07/10/2018 02:16 PM, Grundtvig Nielsen Niels wrote:
In FrameMaker, I’m used to setting up a graphics frame and placing more
than one graphic inside when I need to show several graphics left to
right. I can apparently do the same in DITA .xml without getting an
invalid file, but even with just two graphics and both of them set to
"placement=inline" the output to .pdf always renders the two images with
a line-feed between them.
I can well imagine it’s not a trivial task to place graphics right to
left, but could you just confirm I’m misunderstanding the placement
attribute? then I’ll know for certain I need to prepare special graphics
instead of reusing graphics I already have.
When an image is a direct child of a fig, its placement is necessarily
"break", whatever the value of attribute placement.
The reason for this is that a fig may not contain text and is really
meant to contain only "block elements" (the only exception being image).
See
http://docs.oasis-open.org/dita/dita/v1.3/errata02/os/complete/part2-tech-content/contentmodels/cmtcf.html#cmtcf__fig
In order to solve your problem, simply wrap your pair of images into a
paragraph, that is, replace:
---
<fig>
<title>Icon for black background (left) and white background
(right)</title>
<image href="../graphics/statusBar/bat_level_3_inv.svg"
placement="inline" scale="40"/>
<image href="../graphics/statusBar/bat_level_3.svg"
placement="inline"
scale="40"/>
</fig>
---
by:
---
<fig>
<title>Icon for black background (left) and white background
(right)</title>
<p><image href="../graphics/statusBar/bat_level_3_inv.svg"
scale="40"/>
<image href="../graphics/statusBar/bat_level_3.svg"
scale="40"/></p>
</fig>
---
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support