On 08/06/2017 10:11 PM, Pablo Rodriguez wrote:
[...] This is what I have in the XML file:
<div class="sidebyside"> <p><img src="img/first-image.png" /> <img src="img/second-image.png" /></p> </div>
Sorry, Hans. Today I realize I was saying nonsense. I solved it with: \xmlsetsetup{\xmldocument} {[contains(@class,'sidebyside')]/p} {xml:sidebyside} \xmlsetsetup{\xmldocument} {[contains(@class,'sidebyside')]/p/img} {xml:image:sidebyside} \startxmlsetups xml:sidebyside \blank\startalign[center] \dontleavehmode \xmlflush{#1} \stopalign\blank \stopxmlsetups \startxmlsetups xml:image:sidebyside \externalfigure[\xmlatt{#1}{src}][width=.495\textwidth] \stopxmlsetups Sorry for the noise, Pablo -- http://www.ousia.tk