From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/8534 Path: main.gmane.org!not-for-mail From: Berend de Boer Newsgroups: gmane.comp.tex.context Subject: Re: Docbook and Context Date: 04 Jul 2002 07:42:40 +1200 Sender: owner-ntg-context@let.uu.nl Message-ID: <87znx87g3z.fsf@dellius.nederware.nl> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035398930 28349 80.91.224.250 (23 Oct 2002 18:48:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:48:50 +0000 (UTC) Original-To: ntg-context@ntg.nl In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:8534 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:8534 "=?utf-8?Q?scarsoluigi@libero.it?=" writes: > I start to work on translating a xml document docbook-conformant > and i really appreaciate any suggestion and information about it. > (sorry for my horrible english) Here a really simple example: % DocBook constructs % \def\BookInfoStart{\startstandardmakeup\let\TitleContent\BookTitle} \let\BookInfoStop\stopstandardmakeup \def\BookTitle#1% {\startalignment[middle,nothyphenated]{\bfb #1}\stopalignment \blank[4cm]} % \def\ChapterStart{\let\TitleContent\chapter} \let\ChapterStop\relax % \def\SectOneStart{\let\TitleContent\section} \let\SectOneStop\relax % \let\ParaStart\par \let\ParaStop\par % XML mappings \defineXMLpickup [bookinfo] {\BookInfoStart} {\BookInfoStop} \defineXMLpickup [chapter] {\ChapterStart} {\ChapterStop} \defineXMLpickup [sect1] {\SectOneStart} {\SectOneStop} \defineXMLargument [title] {\TitleContent} \defineXMLpickup [para] {\ParaStart} {\ParaStop} -- Live long and prosper, Berend de Boer