ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Martin Kolařík" <martin@mii.cz>
Subject: some XML stuff (and bugs?)
Date: Mon, 11 Aug 2003 10:12:50 +0200	[thread overview]
Message-ID: <006401c35fe0$5b500630$2197fac3@mii.cz> (raw)

Hi all,

I have some problems with XML and ConTeXt, some of them are probably not
implemented in ConTeXt yet.

1. XML contains    <type>&#60;tag&#62;</type>
   I define        \defineXMLargument [type] \type
   ConTeXt outputs &#60;tag>

   It is interesting that inside \bTD..\eTD it is typeset correctly (<tag>).

2. Is there a way to get some piece of processed XML code into buffer
(preserving blanks)? The first-approach solution of course does not work:
\defineXMLenvironment [buffer] \startbuffer \stopbuffer never finds
\stopbuffer. I suceed if \stopbuffer occured in XML code, but this is not
the proper way :-).

I also suceed when I defined \defineXMLenvironment [buffer] {\dostartbuffer
[bname] [StartBuffer][/bufferdef>]} \relax and in the XML I wrote
\</bufferdef>...

So, how to implement somehow \defineXMLverbatim [buffer] ... which finds
(and stops) reading on </buffer>?

3. if XML entity is placed before \par (e.g. in verbatim XML source, where
an empty line occurs) ConTeXt fails with reading entity #2 parameter
(Runaway? error). Maybe \long for \def\remapXMLentity should be used?

4. if I use <math><buffer/></math> it does not work -- <math> implementation
using \XMLremapdata[mml] does not find any MML tag. Anyhow, I did not suceed
with pre expansion of <buffer/> -- probably, if I am able to expand (get
content of) <buffer/> (it contains MML tags) it would work.

5. some expansion stuffs, I expect it is a behaviour :-) but it would be
pretty if it is possible.
I did not suceed with using \getbuffer (aka all \process...buffer) in
expanded environment. Simple use of \message{\getbuffer[somebuffer]} fails.
If such expansion is possbile probably 4. would be solved too.

Have a nice day and thank you,

Martin

--------
Martin Kolarik
Moravske Pristroje, a.s., Masarykova 1148, Zlin 76302
tel. +420 603 498 498, fax +420 577 107 171
web: http://www.mii.cz
--------
e-mail: kolarik@mii.cz
e-mail: kolarik@click.cz
tel. +420 603 535 593

             reply	other threads:[~2003-08-11  8:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-11  8:12 Martin Kolařík [this message]
2003-08-11 12:37 ` Hans Hagen
2003-08-11 13:40   ` Martin Kolarík
2003-08-11 12:41 ` Hans Hagen
2003-08-11 13:41   ` Martin Kolarík
2003-08-11 14:52     ` Hans Hagen
2003-08-11 15:27       ` Martin Kolarík
2003-08-11 16:15         ` Hans Hagen
2003-08-12  6:45           ` Martin Kolarík

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='006401c35fe0$5b500630$2197fac3@mii.cz' \
    --to=martin@mii.cz \
    --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).