Thank you Hans ! This code is ... awesome ! JP
Le 09/08/2017 à 11:03, Hans Hagen a écrit :
\startbuffer[test] <a> <texcode> \starttext \ConTeXt\ is awesome! \stoptext </texcode> <xmlcode> <text> <front> ... </front> <body> ... </body> </text> </xmlcode> </a> \stopbuffer \startxmlsetups xml:testsetups \xmlsetsetup{\xmldocument}{a/xmlcode}{xml:xmlcode} \xmlsetsetup{\xmldocument}{a/texcode}{xml:texcode} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:texcode \xmlprettyprint{#1}{tex} \stopxmlsetups \startxmlsetups xml:xmlcode \xmlprettyprint{#1}{xml} \stopxmlsetups \starttext \xmlprocessbuffer{main}{test}{} \stoptext
___________________________________________________________________________________ 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 ___________________________________________________________________________________