![](https://secure.gravatar.com/avatar/144d38ba5d13c4f10d7e8c19b2460677.jpg?s=120&d=mm&r=g)
-----Original Message----- From: ntg-context-admin@ntg.nl [mailto:ntg-context-admin@ntg.nl]On Behalf Of Hans Hagen Sent: Monday, August 11, 2003 4:53 PM To: ntg-context@ntg.nl Subject: RE: [NTG-context] some XML stuff (and bugs?)
yes, this works:
\starttext
\defineXMLsave [buffer]
\defineXMLsingular [buffer] {\XMLflush{buffer}}
\startXMLdata test <buffer>here</buffer> test <buffer/>
At 15:41 11/08/2003 +0200, you wrote: think of it: what should expand and what not and when?
exactly said, in this case I need unwrap <buffer/> and process it in \XMLremapdata[mml]... I tried it but I did not suceed as \XMLflush executes content and, of course, there nothing is left for \XMLremapdata to remap. So, I fairly know what and how to expand, but I did not achieve this in ConTeXt. It worths for thinking :-). Currently, I have this solved -- I process my buffers first using XSLT (as I cannot decompose <... etc. in verbatim buffers into <... and then process the buffer using processXMLbuffer) to generate \startbuffer..\stopbuffer containing <>, and I assure that all buffers will contain <math> and </math> to avoid problems with expanding for \XMLremapdata. Thank you and please dismiss the topic if you want, Martin