Date: Tue, 3 Nov 1998 09:15:56 +0000 From: nclayton@lehman.com To: Sean Kelly <kelly@plutotech.com>, Nik Clayton <nik@nothing-going-on.demon.co.uk> Cc: doc@FreeBSD.ORG Subject: Re: DocBook markup guide for the Handbook Message-ID: <19981103091556.O20122@lehman.com> In-Reply-To: <363E4964.24A5FEDA@plutotech.com>; from Sean Kelly on Mon, Nov 02, 1998 at 05:08:04PM -0700 References: <19981102232010.63991@nothing-going-on.org> <363E4964.24A5FEDA@plutotech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 02, 1998 at 05:08:04PM -0700, Sean Kelly wrote: > In the guide at <URL:http://www.freebsd.org/~nik/hb/markup-guide.html>, > you wrote: > > Each chapter.sgml file will not be a complete SGML > document. In particular, they will not have their > own DOCTYPE line at the start of the file. > > This is unfortunate for two reasons; > > Yes, it is indeed unfortunate, but not necessary either, is it? Why > can't each chapter be a complete SGML document with a DOCTYPE > declaration that's later entity-included into the book? I could've > sworn that works. It doesn't work. % cat test.sgml <!DOCTYPE sect1 PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [ <!ENTITY p SYSTEM "para.sgml"> ]> <sect1> <title>A small section</title> &p; </sect1> % cat para.sgml <!DOCTYPE para PUBLIC "-//Davenport//DTD DocBook V3.0//EN"> <para>A DocBook paragraph.</para> % nsgmls -s test.sgml nsgmls:para.sgml:1:2:E: "DOCTYPE" declaration not allowed in instance % echo "<para>A Docbook paragraph.</para>" > para.sgml % nsgmls -s test.sgml % Hence the work around of Emacs local variables and a driver file. N -- --+==[ Systems Administrator, Year 2000 Test Lab, Lehman Brothers, Inc. ]==+-- --+==[ 1 Broadgate, London, EC2M 7HA 0171-601-0011 x6492 ]==+-- 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?19981103091556.O20122>