[NTG-context] xml--verbatim in error?

Meer, H. van der H.vanderMeer at uva.nl
Wed Mar 21 14:00:01 CET 2012


I found something that might be an error in the current xml-processing. 
In the following minimal example een "Undefined control sequence" error occurs for the \xmldisplayverbatim and \xmlinlineverbatims. The \xmlverbatim doesn't.

\startxmldisplayverbatim ...\doinitializeverbatim 
                                                  \beginofverbatimlines 

\startbuffer[test-1]
<?xml version="1.0" encoding="UTF-8"?>
<myroot>
  <text>buffer[test-1] contents</text>
</myroot>
\stopbuffer

\startxmlsetups load:setups
  \xmlsetsetup{\xmldocument}{myroot|text}{load:*}
\stopxmlsetups\xmlregistersetup{load:setups}

\startxmlsetups load:myroot
  \writestatus{TEST}{loading myroot node = #1 = \xmlname{#1}}
%  \xmlverbatim{#1}{text}\par
  \xmldisplayverbatim{#1}{text}\par
%  \xmlinlineverbatim{#1}{text}\par
\stopxmlsetups

\startxmlsetups load:text
\writestatus{TEST}{node = #1 = \xmlname{#1}}
\xmlflush{#1}
\stopxmlsetups

\enabletrackers[lxml.loading]
\setuppapersize[S5][S5]
\starttext
\xmlprocessbuffer{myroot}{test-1}{}
\stoptext
    

Hans van der Meer





More information about the ntg-context mailing list