Oho, very devious :-} thanks for the tip!

N

-----Original Message-----
From: Hussein Shafie [mailto:huss...@xmlmind.com]
Sent: dinsdag 10 juli 2018 15:52
To: Grundtvig Nielsen Niels
Cc: 'xmleditor-support@xmlmind.com'
Subject: Re: [XXE] non-urgent question about graphics placement

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>
---


*********************************************************************************************
Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg
- 1130 Brussels - Belgium
RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
BIC BBRUBEBB - IBAN BE55 3100 2694 2444

"The information contained in this e-mail and any attachment there to be 
confidential and may contain information which is protected by intellectual 
property rights.
This information is intended for the exclusive use of the recipient(s) named 
above.
This e-mail does not constitute any binding relationship or offer toward any of 
the addressees.
If you are not one of the addressees , one of their employees or a proxy holder 
entitled to hand over this message to the addressee(s), any use of the 
information contained herein (e.g. reproduction, divulgation, communication or 
distribution,...) is prohibited.
If you have received this message in error, please notify the sender and 
destroy it immediately after.
The integrity and security of this message cannot be guaranteed and it may be 
subject to data corruption, interception and unauthorized amendment, for which 
we accept no liability."

--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to