From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: Re: concatenating attribute values in XML
Date: Mon, 7 Aug 2017 21:04:22 +0200 [thread overview]
Message-ID: <c3c88754-12ac-a853-becc-d91a27868577@gmx.es> (raw)
In-Reply-To: <113d3030-eeca-7e90-928d-09128a25d8e8@gmx.es>
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
___________________________________________________________________________________
prev parent reply other threads:[~2017-08-07 19:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-06 9:37 Pablo Rodriguez
2017-08-06 10:05 ` Hans Hagen
2017-08-06 20:11 ` Pablo Rodriguez
2017-08-07 19:04 ` Pablo Rodriguez [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c3c88754-12ac-a853-becc-d91a27868577@gmx.es \
--to=oinos@gmx.es \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).