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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to