ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Berend de Boer <berend@pobox.com>
Subject: Re: Docbook and Context
Date: 04 Jul 2002 07:42:40 +1200	[thread overview]
Message-ID: <87znx87g3z.fsf@dellius.nederware.nl> (raw)
In-Reply-To: <GYOL2C$31AA17914D144FB3E8C5428297E28B48@libero.it>

"=?utf-8?Q?scarsoluigi@libero.it?=" <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

% <bookinfo>
\def\BookInfoStart{\startstandardmakeup\let\TitleContent\BookTitle}
\let\BookInfoStop\stopstandardmakeup
\def\BookTitle#1%
  {\startalignment[middle,nothyphenated]{\bfb #1}\stopalignment
   \blank[4cm]}

% <chapter>
\def\ChapterStart{\let\TitleContent\chapter}
\let\ChapterStop\relax

% <sect1>
\def\SectOneStart{\let\TitleContent\section}
\let\SectOneStop\relax

% <para>
\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


  reply	other threads:[~2002-07-03 19:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-03 16:13 scarsoluigi
2002-07-03 19:42 ` Berend de Boer [this message]
2002-07-05 18:47 ` Simon Pepping
2004-11-15 14:14 John Culleton
2004-11-15 17:21 ` Siep Kroonenberg
2004-11-15 17:43 ` Henning Hraban Ramm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87znx87g3z.fsf@dellius.nederware.nl \
    --to=berend@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).