From: Tobias Burnus <burnus@gmx.de>
Cc: NTG ConTeXt <ntg-context@ntg.nl>
Subject: Re: XML in ConTeXt
Date: Wed, 14 Mar 2001 19:47:02 +0200 [thread overview]
Message-ID: <3AAFBCA6.33C408CD@gmx.de> (raw)
In-Reply-To: <003301c0ac63$233305a0$8119fea9@birotica.rdsor.ro>
Hi,
> Is there an example or a documentation of how can someone input XML files
> into ConTeXt?
Have you seen this:
http://www.pragma-ade.com/xml.htm
http://www.pragma-ade.com/ -> XML support
This works:
\defineXMLentity [middot] {$\cdot$}
\defineXMLenvironment [html] \starttext \stoptext
\defineXMLargument [head] \gobbleoneargument
\defineXMLargument [h1] \title
\defineXMLenvironment [p] \endgraf \endgraf
\processXMLfilegrouped{test.xhtml}
and this works also:
\usemodule[mathml]
\starttext
\startXMLdata
<math>
<apply><eq/>
<apply><divide/><cn>1</cn><apply><factorial/><cn>2</cn></apply></apply>
<apply><minus/><apply><divide/>
<cn>1</cn><apply><factorial/><cn>2</cn></apply>
</apply></apply>
<apply><divide/><cn>1</cn><apply><factorial/><cn>2</cn></apply></apply>
<apply><minus/>&cdots;</apply>
</apply>
</math>
\stopXMLdata
\stoptext
Greetings from Bologna,
Tobias
next prev parent reply other threads:[~2001-03-14 17:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-14 8:45 Dan Seracu
2001-03-14 10:08 ` Hans Hagen
2001-03-14 17:47 ` Tobias Burnus [this message]
2001-03-15 10:41 ` Dan Seracu
2001-03-16 23:15 ` Tobias Burnus
2001-03-18 19:55 ` Hans Hagen
2001-03-19 6:20 ` Dan Seracu
2001-03-19 9:18 ` Hans Hagen
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=3AAFBCA6.33C408CD@gmx.de \
--to=burnus@gmx.de \
--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).