![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On 08/22/2011 07:19 PM, Hans Hagen wrote:
I know that I should refuse to answer questions without a minimal example ... I'm pretty sure that your students can't use the heat-wave excuse.
You're right, of course, for educational purposes... As for my students: they use the weirdest excuses anyway...
\startbuffer[example] <something> <sometex>weird</sometex> </something> \stopbuffer
\startbuffer[weird] \color[red]{Looks red to me!} \stopbuffer
\startxmlsetups xml:mysetups \xmlsetsetup{#1}{*}{xml:*} \stopxmlsetups
\xmlregistersetup{xml:mysetups}
\startxmlsetups xml:something \blank \relax [start something] \blank \xmlflush{#1} \blank \relax [stop something] \blank \stopxmlsetups
\startxmlsetups xml:sometex \pushcatcodetable \catcodetable\ctxcatcodes \getbuffer[\xmlflush{#1}] \popcatcodetable \stopxmlsetups
\starttext \xmlprocessbuffer{main}{example}{} \stoptext
I'll replace \processTEXbuffer by:
\unexpanded\def\processTEXbuffer {\dosingleempty\doprocessTEXbuffer}
\def\doprocessTEXbuffer[#1]% {\pushcatcodetable \catcodetable\ctxcatcodes \getbuffer[#1]% \popcatcodetable}
so that you can say:
\startxmlsetups xml:sometex \processTEXbuffer[\xmlflush{#1}] \stopxmlsetups
Excellent, it must be less hot in Hasselt then... Thanks for the example, and for the solution! So \processTEXbuffer will end up in the core? All best Thomas