Home Forums DITA and XMetaL Discussion TOPLEAF: Cannot get image to bind to previous paragraph Reply To: TOPLEAF: Cannot get image to bind to previous paragraph

gjn2066

Reply to: TOPLEAF: Cannot get image to bind to previous paragraph

I think I see what's happening. Setting the [u]Bind to previous[/u] on the image is binding to the (otherwise empty) enclosing para. But this para is not itself bound to the preceding para. My solution worked because the enclosing fig element [u]did[/u] bind to the previous para.

This is a case where the available markup is not really adequate to fully express your requirements, but there are a couple of minor changes which could get you the desired result:

  • If the image has to bind to the previous para, then it must itself be a [u]block[/u] element and therefore needs no enclosing p. Once this is done, the bind on the image will be effective.
  • If the image is regarded as an [u]inline[/u] element, then it can't do any para binding itself. In this case you will need some means of applying the bind to the enclosing p, which would then act like fig in my earlier example. Suggest something like:
       

    …preceding text…

     

Does this help?

Geoff

Reply

Products
Downloads
Support