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
___________________________________________________________________________________

Reply via email to