Hi all,
I thought I had done this and it was easy, but I can't
find a solution: I want to test whether a xml tag has an
attribute and vary the typeset content accordingly. There
used to be \xmldoifelseempty, but that has been commented
out (lxml-ini.mkiv). What else could I use? Here's a
On 13-12-2010 8:58, Thomas Schmitz wrote:
Hi all,
I thought I had done this and it was easy, but I can't find a solution:
I want to test whether a xml tag has an attribute and vary the typeset
content accordingly. There used to be \xmldoifelseempty, but that has
been commented out
Hans, thanks a lot!
On Mon, 13 Dec 2010 21:17:23 +0100
Hans Hagen pra...@wxs.nl wrote:
something like this:
\doifelse {\xmlatt{#1}{important}} {} {
\color[darkblue]{EMPTY: \xmlflush{#1}}
} {
\color[darkred]{NOTEMPTY: \xmlatt{#1}{important}}
}
\par
Yes, this works!
or (untested):