[NTG-context] typesetting content of attribute

Hans Hagen pragma at wxs.nl
Sat Apr 30 19:08:23 CEST 2016


On 4/30/2016 3:28 PM, Meer, Hans van der wrote:
> The aim is to typeset a TeX-command given in an attribute on an xml node.
> Example
> ...
> \xmlatt{#1}{style}
> ...
> where the node has
> <node style="\bf"/>
>
> The problem is that this produces the macrotext\bf and does not execute
> the \bf.
> I guess that the catcoderegime is not that of TeX here.
> With what (magical) incantation to do this?
>
> Nb. I know that here I could have coded 'bf" and called with
> \csname..\endcsname, but this is but a simple example and would not work
> for '\it\bf', etc.

\starttexcode \stoptexcode

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list