Date: Fri, 21 Dec 2001 10:31:58 +0000 From: Nik Clayton <nik@freebsd.org> To: darklogik@pittgoth.com Cc: Nik Clayton <nik@FreeBSD.ORG>, FreeBSD-doc@FreeBSD.ORG Subject: Re: should i be using sgml or xml? Message-ID: <20011221103158.N51511@clan.nothing-going-on.org> In-Reply-To: <3C227424.19255.DCE84@localhost>; from darklogik@pittgoth.com on Thu, Dec 20, 2001 at 11:28:36PM -0500 References: <20011220093411.A48837@elvis.mu.org>; <20011220235225.I51511@clan.nothing-going-on.org> <3C227424.19255.DCE84@localhost>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Thu, Dec 20, 2001 at 11:28:36PM -0500, darklogik@pittgoth.com wrote:
> So there is a way to just "make" if you will, an xml formatted file, if
> so do we have it documented?
You need:
1. An SGML file. Call it "book.sgml"
2. A file that contains the DOCTYPE line you want to go at the start
of the generated XML file. Call it "doctype", and make sure it
has this line as it's only content:
<!DOCTYPE book SYSTEM "/usr/local/share/xml/docbook/docbookx.dtd">
3. The following variable defined:
CATALOGS= /usr/local/share/sgml/docbook/dsssl/modular/catalog
CATALOGS+= /usr/local/share/sgml/docbook/catalog
CATALOGS+= /usr/local/share/sgml/jade/catalog
CATALOGS+= /usr/local/share/sgml/iso8879/catalog
CATALOGS+= /usr/local/share/xml/docbook/catalog
You can then write the following Makefile fragment to do the conversion:
book.xml: book.sgml
cp doctype book.xml
sx ${CATALOGS:C/^/-c /g} -xlower -xndata book.sgm | \
tail -n +2 >> book.xml
We could add this to the doc/share/*.mk files relatively easily, except
for the dependence on the XML catalog file (which could be added to the
docproj meta-port).
Thoughts?
N
--
FreeBSD: The Power to Serve http://www.freebsd.org/
FreeBSD Documentation Project http://www.freebsd.org/docproj/
--- 15B8 3FFC DDB4 34B0 AA5F 94B7 93A8 0764 2C37 E375 ---
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjwjD50ACgkQk6gHZCw343WuxgCghd2qh+9qkrft9/UEkab9WmBi
XtwAn1ifatMWnkdThB4F9g8J6BpaAvjo
=cCrq
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011221103158.N51511>
