ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XML xmldoif struggle!
@ 2019-04-30 19:58 Geert Verhaag
  2019-05-01 11:20 ` Pablo Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Geert Verhaag @ 2019-04-30 19:58 UTC (permalink / raw)
  To: ntg-context

Hi,

I've the following XML tag in my XML file:

<invoice number="194-002" client="RPMB-0012">
   <currency>EURO</currency>
.....

with invoice being the root tag!

Now I have a setup defined as below (only part!):

\startxmlsetups xml:invoice:invoice
   \xmlfirst{#1}{currency} \par
   \xmldoif{\xmlfirst{#1}{currency}}{contains(text(),'EURO')} {
      Euro set! \par
   }
.....

The \xmlfirst{#1}{currency} command prints EURO as expected.

But the xmldoif command doesn't cause the Euro set be printed?!

What's wrong here? The manual xml-mkiv.pdf doesn't give me any hint on 
how to make this work!

Regards,

Gerard

-- 


___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-05-03 17:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-30 19:58 XML xmldoif struggle! Geert Verhaag
2019-05-01 11:20 ` Pablo Rodriguez
2019-05-01 19:28   ` Geert Verhaag
2019-05-02 12:47     ` Pablo Rodriguez
2019-05-02 19:38       ` Geert Verhaag
2019-05-02 22:51         ` Aditya Mahajan
2019-05-03 17:41           ` Geert Verhaag

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).