ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Meer, H. van der" <H.vanderMeer@uva.nl>
To: ConTeXt NTG <ntg-context@ntg.nl>
Subject: xml--verbatim in error?
Date: Wed, 21 Mar 2012 13:00:01 +0000	[thread overview]
Message-ID: <BC5AD199-FD72-4406-BCCF-F4ABF70FBA1B@uva.nl> (raw)

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



___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


                 reply	other threads:[~2012-03-21 13:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BC5AD199-FD72-4406-BCCF-F4ABF70FBA1B@uva.nl \
    --to=h.vandermeer@uva.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).