From owner-freebsd-doc Fri Dec 21 2:57:28 2001 Delivered-To: freebsd-doc@freebsd.org Received: from nothing-going-on.demon.co.uk (pc-62-31-42-140-hy.blueyonder.co.uk [62.31.42.140]) by hub.freebsd.org (Postfix) with ESMTP id D3A8D37B419; Fri, 21 Dec 2001 02:57:23 -0800 (PST) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.11.6/8.11.6) id fBLAVww99345; Fri, 21 Dec 2001 10:31:58 GMT (envelope-from nik) Date: Fri, 21 Dec 2001 10:31:58 +0000 From: Nik Clayton To: darklogik@pittgoth.com Cc: Nik Clayton , FreeBSD-doc@FreeBSD.ORG Subject: Re: should i be using sgml or xml? Message-ID: <20011221103158.N51511@clan.nothing-going-on.org> References: <20011220093411.A48837@elvis.mu.org>; <20011220235225.I51511@clan.nothing-going-on.org> <3C227424.19255.DCE84@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="VnOTrGv5LmZxna7m" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C227424.19255.DCE84@localhost>; from darklogik@pittgoth.com on Thu, Dec 20, 2001 at 11:28:36PM -0500 Organization: FreeBSD Project Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --VnOTrGv5LmZxna7m Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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= =20 > 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: 3. The following variable defined: CATALOGS=3D /usr/local/share/sgml/docbook/dsssl/modular/catalog CATALOGS+=3D /usr/local/share/sgml/docbook/catalog CATALOGS+=3D /usr/local/share/sgml/jade/catalog CATALOGS+=3D /usr/local/share/sgml/iso8879/catalog CATALOGS+=3D /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 --=20 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 --- --VnOTrGv5LmZxna7m Content-Type: application/pgp-signature Content-Disposition: inline -----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----- --VnOTrGv5LmZxna7m-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message