From DoubleC@acc.co.nz Thu Mar 29 13:31:05 2001
Return-Path: <DoubleC@acc.co.nz>
X-Sender: DoubleC@acc.co.nz
X-Apparently-To: lojban@yahoogroups.com
Received: (EGP: mail-7_0_4); 29 Mar 2001 21:31:05 -0000
Received: (qmail 39714 invoked from network); 29 Mar 2001 21:30:42 -0000
Received: from unknown (10.1.10.26) by l8.egroups.com with QMQP; 29 Mar 2001 21:30:42 -0000
Received: from unknown (HELO webgw099.acc.org.nz) (203.167.220.2) by mta1 with SMTP; 29 Mar 2001 21:30:41 -0000
Received: from mh_acc099 (not verified[10.99.5.50]) by webgw099.acc.org.nz with MailMarshal (4,0,9,0) id <B00005d556>; Fri, 30 Mar 2001 09:32:46 +1200
Received: from ACC_DOM-Message_Server by mh_acc099 with Novell_GroupWise; Fri, 30 Mar 2001 09:28:04 +1200
Message-Id: <sac451a4.021@mh_acc099>
X-Mailer: Novell GroupWise 5.5.4
Date: Fri, 30 Mar 2001 09:27:53 +1200
To: <lojban@yahoogroups.com>
Subject: Re: [lojban] Document Management
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
From: "Chris Double" <DoubleC@acc.co.nz>

> >When creating documents myself for distribution in different formats I
> >use custom XML tags. Basically I build a DTD as I go along using
> >elements that describe the information being stored. I then use XSLT
> >stylesheets to transform this to HTML, Docbook, XSL-FO, or whatever.
>
>sounds very appealing, what exactly do you have to do to be able to
>convert to all those formats?

I create an XSLT stylesheet to transform the XML document into whatever is =
required for my output format - usually another document like Docbook or H=
TML.

XSLT is a declarative language that allows you to define how to manipulate =
the XML tags in your original document and how they should appear in the th=
e resulting document. You use an XSLT processor to do the work. For example=
, I use saxon:

saxon -o result.html input.xml input2html.xsl

The stylesheets only need to be written once for each output type and can b=
e re-used on all input documents conforming to the same XML structure.

See articles on www.xml.com or www.xmlhack.com for more details and example=
s.

Chris.
--=20
http://www.double.co.nz/lojban


