> -----Ursprüngliche Nachricht-----
> Von: Hans Hagen via ntg-context <ntg-context@ntg.nl>
> Gesendet: Montag, 21. August 2023 19:09
> 
> you need a bit of imagination because basically (depends a bit on what you
> do) one big nested expansion is going on, as Thomas explained: using setups
> which are basically macros. The #1 is the current node (but you can store it 
> in a
> macro and use it later if needed). So, only references are passed around.
> 
> for thomas: we now also have (in lmtx)
> 
> \ifxml         {id}{pattern}      \else \fi
> \ifxmltext     {id}{pattern}      \else \fi
> \ifxmlatt      {id}{name}{value}  \else \fi
> \ifxmlattempty {id}{pattern}      \else \fi
> \ifxmlempty    {id}{pattern}      \else \fi
> \ifxmlselfempty{id}               \else \fi

So, these new commands diverge from the older patterns:
\xmldoifelse{#1}{pattern}{TRUE}{FALSE} ?

Am I reading this correctly?

Denis
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Reply via email to