Hi,
I have an XML file (which is generated via a program that I have no
control over), which contains elements as follows:
<p>
<equation text="$$y_1(t) = 1, t \geq 0$$">
<img alt="$$y_1(t) = 1, t \geq 0$$" class="equation"
height="15px" src="Lab01_eq10401623798909303081.png" width="95px"/>
</equation>
</p>
I want to typeset the `text` attribute of equation (and ignore the <img>
tag). So, I tried:
\startxmlsetups matlab
% Bunch of missing definitions
\xmlsetsetup{#1}{equation}{matlab:*}
\stopxmlsetups
\startxmlsetups matlab:equation
\xmlatt{#1}{text}
\stopxmlsetups
This literally typesets `$$y_1(t) = 1, t \geq 0$$`. How can I flush the
attribute using ctxcatcodes? (There is \xmlflushcontent, but that is for
content and not attributes).
Thanks,
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________