-----Ursprüngliche Nachricht----- Von: Hans Hagen via ntg-context
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