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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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: <!DOCTYPE book SYSTEM "/usr/local/share/xml/docbook/docbookx.dtd"> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011221103158.N51511>