> -----Ursprüngliche Nachricht-----
> Von: Hans Hagen <j.ha...@xs4all.nl>
> Gesendet: Freitag, 5. März 2021 23:17
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>; Maier, Denis
> Christian (UB) <denis.ma...@ub.unibe.ch>;
> wolfgang.schuster.li...@gmail.com
> Betreff: Re: [NTG-context] arbitrary context commands in xml file


[...]

> >
> > Here, I was thinking if something like this could be easier:
> >
> > <?context-directive raw-tex-injector \testpage[4]?>
> you can also do this:
> 
> <testpage n="4"/>
> 
> \startxmlsetups xml:testpage
>    \testpage[\xmlatt{#1}{n}]
> \stopxmlsetup
> 
> and register that one (as in previous examples)

Thanks,. That's a good idea, but it will also make the XML invalid.

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