Am 26.01.2015 um 14:21 schrieb Pablo Rodriguez
: Dear list,
I have the following sample:
\startbuffer[demo] <doc> <p>This context is not ConTeXt.</p> </doc> \stopbuffer
\starttext
\startxmlsetups xml:initialize \xmlsetsetup{#1}{p|doc}{xml:*} \stopxmlsetups
\xmlregistersetup{xml:initialize}
\startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups
\startxmlsetups xml:p \xmlflush{#1}\par \stopxmlsetups
\xmlprocessbuffer{main}{demo}{}
\stoptext
Is there any way that I get "ConTeXt" (and not "context") typeset as \ConTeXt?
Many thanks for your help,
Hans uses for the documentation of the Lua code <logo label="context"/> to print the ConTeXt logo, to do so the following setup is used (copied from x-ldx.mkiv): \startxmlsetups ldx:logo \uppercasestring\xmlatt{#1}{label}\xmlatt{#1}{name}\to\ascii \ifx\ascii\empty\else\getvalue{\ascii}\fi \stopxmlsetups Wolfgang