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



Reply via email to