From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/5786 Path: main.gmane.org!not-for-mail From: Jaroslav Snajdr Newsgroups: gmane.comp.tex.context Subject: Some XML typesetting questions Date: Sun, 7 Oct 2001 23:05:31 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035396354 4565 80.91.224.250 (23 Oct 2002 18:05:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:05:54 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:5786 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:5786 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: ]> .. &ch1; &ch2; .. 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 Title ... ... 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