9 Aug
2017
9 Aug
'17
9:41 a.m.
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