* XML in ConTeXt
@ 2001-03-14 8:45 Dan Seracu
2001-03-14 10:08 ` Hans Hagen
2001-03-14 17:47 ` Tobias Burnus
0 siblings, 2 replies; 8+ messages in thread
From: Dan Seracu @ 2001-03-14 8:45 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 180 bytes --]
Hi!
Is there an example or a documentation of how can someone input XML files
into ConTeXt?
Browsing through xtag... I could only see "<?context ....> but that's all.
Dan Seracu
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Dan Adrian Seracu.vcf --]
[-- Type: text/x-vcard; name="Dan Adrian Seracu.vcf", Size: 664 bytes --]
BEGIN:VCARD
VERSION:2.1
N:Seracu;Dan;Adrian
FN:Dan Adrian Seracu
ORG:Sintezis Birotica;Retail
TITLE:Coordonator retele POS
TEL;WORK;VOICE:+ 40 59 44 32 88
TEL;CELL;VOICE:+40 94 58 33 24
TEL;WORK;FAX:+ 40 59 44 32 88
ADR;WORK:;;str. Roman Ciorogariu, nr. 24;Oradea;Bihor;3700;România
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:str. Roman Ciorogariu, nr. 24=0D=0AOradea, Bihor 3700=0D=0ARom=E2nia
ADR;HOME:;;;Oradea;Bihor;3700;România
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Oradea, Bihor 3700=0D=0ARom=E2nia
URL:
URL:http://www.sintezis.rdsor.ro
EMAIL;PREF;INTERNET:dans@sintezis.rdsor.ro
EMAIL;INTERNET:danseracu@yahoo.com
REV:20010314T084534Z
END:VCARD
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: XML in ConTeXt
2001-03-14 8:45 XML in ConTeXt Dan Seracu
@ 2001-03-14 10:08 ` Hans Hagen
2001-03-14 17:47 ` Tobias Burnus
1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2001-03-14 10:08 UTC (permalink / raw)
Cc: NTG ConTeXt
At 10:45 AM 3/14/01 +0200, Dan Seracu wrote:
>Hi!
>
>Is there an example or a documentation of how can someone input XML files
>into ConTeXt?
>Browsing through xtag... I could only see "<?context ....> but that's all.
\processXMLfilegrouped{yourfile.xml}
of course you need to define a mapping with commands like
\defineXMLenvironment
cum suis,
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: XML in ConTeXt
2001-03-14 8:45 XML in ConTeXt Dan Seracu
2001-03-14 10:08 ` Hans Hagen
@ 2001-03-14 17:47 ` Tobias Burnus
2001-03-15 10:41 ` Dan Seracu
1 sibling, 1 reply; 8+ messages in thread
From: Tobias Burnus @ 2001-03-14 17:47 UTC (permalink / raw)
Cc: NTG ConTeXt
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: XML in ConTeXt
2001-03-14 17:47 ` Tobias Burnus
@ 2001-03-15 10:41 ` Dan Seracu
2001-03-16 23:15 ` Tobias Burnus
2001-03-18 19:55 ` Hans Hagen
0 siblings, 2 replies; 8+ messages in thread
From: Dan Seracu @ 2001-03-15 10:41 UTC (permalink / raw)
Cc: NTG ConTeXt
Hi Tobias!
> \defineXMLentity [middot] {$\cdot$}
>
> \defineXMLenvironment [html] \starttext \stoptext
> \defineXMLargument [head] \gobbleoneargument
> \defineXMLargument [h1] \title
> \defineXMLenvironment [p] \endgraf \endgraf
>
> \processXMLfilegrouped{test.xhtml}
I tried an example from xml.htm. Almost same as yours. But the problem is
that it said:
Undefined control sequence: \defineXMLenvironment
Should I include some other files? I have the latest beta.
Greetings from Oradea, Romania,
Dan Seracu
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: XML in ConTeXt
2001-03-15 10:41 ` Dan Seracu
@ 2001-03-16 23:15 ` Tobias Burnus
2001-03-18 19:55 ` Hans Hagen
1 sibling, 0 replies; 8+ messages in thread
From: Tobias Burnus @ 2001-03-16 23:15 UTC (permalink / raw)
Cc: NTG ConTeXt
Hi Dan,
> I tried an example from xml.htm. Almost same as yours. But the problem is
> that it said:
> Undefined control sequence: \defineXMLenvironment
This should be in xtag-ini.tex
There are two xtag files in the latest(?) zip file:
27895 03-10-01 21:44 tex/context/base/xtag-ini.tex
3424 01-27-01 00:43 tex/context/base/xtag-vis.tex
(For MathML etc. I have 23 of those, but I think xtag-ini.tex should be
enough for non-MathML work. For MathML one needs some extra files, but
this is in flux.)
Tobias
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: XML in ConTeXt
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
1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2001-03-18 19:55 UTC (permalink / raw)
Cc: Tobias Burnus, NTG ConTeXt
At 12:41 PM 3/15/01 +0200, Dan Seracu wrote:
>Hi Tobias!
>
>> \defineXMLentity [middot] {$\cdot$}
>>
>> \defineXMLenvironment [html] \starttext \stoptext
>> \defineXMLargument [head] \gobbleoneargument
>> \defineXMLargument [h1] \title
>> \defineXMLenvironment [p] \endgraf \endgraf
>>
>> \processXMLfilegrouped{test.xhtml}
>
>I tried an example from xml.htm. Almost same as yours. But the problem is
>that it said:
>
>Undefined control sequence: \defineXMLenvironment
Do you run pdfetex (that is etex)?
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: XML in ConTeXt
2001-03-18 19:55 ` Hans Hagen
@ 2001-03-19 6:20 ` Dan Seracu
2001-03-19 9:18 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Dan Seracu @ 2001-03-19 6:20 UTC (permalink / raw)
Cc: NTG ConTeXt
Hi!
One of the Murphy's laws sais: when nothing is working, please read the
manual. So in the manual it sais that XML is working only with (pdf)etex.
So you were right. I did not use pdfetex. But after downloading and
unzipping pdfetex, everything is ok.
I think is quite nice: I can make any program to exports a report into XML
and typeset that report with pdfetex with some environment!!!
Dan Seracu
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: XML in ConTeXt
2001-03-19 6:20 ` Dan Seracu
@ 2001-03-19 9:18 ` Hans Hagen
0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2001-03-19 9:18 UTC (permalink / raw)
Cc: NTG ConTeXt
At 08:20 AM 3/19/01 +0200, Dan Seracu wrote:
>Hi!
>
>One of the Murphy's laws sais: when nothing is working, please read the
>manual. So in the manual it sais that XML is working only with (pdf)etex.
>
>So you were right. I did not use pdfetex. But after downloading and
>unzipping pdfetex, everything is ok.
>
> I think is quite nice: I can make any program to exports a report into XML
>and typeset that report with pdfetex with some environment!!!
btw, with the latest texexec, you can also run xml directly
texexec --env=yourenvironemntfile yourfile.xml
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2001-03-19 9:18 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-14 8:45 XML in ConTeXt Dan Seracu
2001-03-14 10:08 ` Hans Hagen
2001-03-14 17:47 ` Tobias Burnus
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
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).