ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Some XML typesetting questions
@ 2001-10-07 21:05 Jaroslav Snajdr
  2001-10-08  7:07 ` Berend de Boer
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Jaroslav Snajdr @ 2001-10-07 21:05 UTC (permalink / raw)


Hello,

I've started playing with XML support in Context and have a couple of problems:

1. My XML document is divided into several files. The DOCTYPE declaration looks like this:

<!DOCTYPE book PUBLIC ...docbook stuff... [
  <!ENTITY ch1 SYSTEM "chapter1.xml">
  <!ENTITY ch2 SYSTEM "chapter2.xml">
]>
<book>
..
&ch1;
&ch2;
..
</book>

How can I process this document in Context? I can define the entities &chx;, but that means to define the mapping to file at two places.

2. How to convert Docbook style chapters

<chapter>
  <title>Title</title>
  <para>...</para>
  ...
</chapter>

into

\chapter{Title}

..\par

?

Pushing and popping cannot cope with chapter content. Now I do this:

\defineXMLcommand[chapter]{\let\DBtitle=\chapter}
\defineXMLargument[title]{\DBtitle}

But I'm a bit afraid what will happen when I come to support tag arguments or other things.

Thanks for now,
-jns


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2001-10-23 11:08 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-07 21:05 Some XML typesetting questions Jaroslav Snajdr
2001-10-08  7:07 ` Berend de Boer
2001-10-08  7:10 ` Berend de Boer
2001-10-08  9:25   ` Hans Hagen
2001-10-08 10:00     ` Berend de Boer
2001-10-08 16:15       ` Hans Hagen
2001-10-08 17:16         ` Berend de Boer
2001-10-09  7:24           ` Hans Hagen
2001-10-09  9:53             ` Berend de Boer
2001-10-09 15:38               ` Hans Hagen
2001-10-09 19:10                 ` Simon Pepping
2001-10-08 20:33     ` Simon Pepping
2001-10-09  7:40       ` Hans Hagen
     [not found] ` <87lmiksq01.fsf@dellius.nederware.nl>
2001-10-10  8:21   ` Hans Hagen
2001-10-23 11:08   ` 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).