From owner-freebsd-doc Thu Feb 28 0:38:31 2002 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 7F2C937B402 for ; Thu, 28 Feb 2002 00:37:57 -0800 (PST) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.11.3/8.11.3) id g1S8fph10944; Thu, 28 Feb 2002 08:41:51 GMT (envelope-from nik) Date: Thu, 28 Feb 2002 08:41:50 +0000 From: Nik Clayton To: Peter Pentchev Cc: freebsd-doc@FreeBSD.org Subject: Re: FreeBSD web build failed on freefall.freebsd.org Message-ID: <20020228084150.K4562@canyon.nothing-going-on.org> References: <200202181359.g1IDxip44049@freefall.freebsd.org> <20020218180524.A1671@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="IJAclU0AInkryoed" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i 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 --IJAclU0AInkryoed Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 18, 2002 at 06:05:24PM +0200, Peter Pentchev wrote: > It seems that we stumbled upon a DSSSL/DocBook bug: a > does not like whitespace, even if the whitespace lies between > a and the next . Maybe an entry was never meant to > contain more than one paragraph? It's an SGML 'bug'. From DocBook: The Definitive Guide[1], and the=20 section dealing with the element: =3D=3D Pernicious Mixed Content The content model of the Entry element exhibits a nasty peculiarity that we call "pernicious mixed content". Every other element in DocBook contains either block elements or inline elements (including #PCDATA) unambiguously. In these cases, the meaning of line breaks and spaces are well understood; they are insignificant between block elements and significant (to the SGML parser, anyway) where inline markup can occur. Table entries are different; they can contain either block or inline elements, but not both at the same time. In other words, one Entry in a tab= le might contain a paragraph or a list while another contains simply #PCDATA or another inline markup, but no single Entry can contain both. Because the content model of an Entry allows both kinds of markup, each time the SGML parser encounters an Entry, it has to decide what variety of markup it contains. SGML parsers are forbidden to use more than a single token of lookahead to reach this decision. In practical terms, what this means is th= at a line feed or space after an Entry start tag causes the parser to decide that the cell contains inline markup. Subsequent discovery of a paragraph or another block element causes a parsing error. All of these are legal: 3.1415927 General #PCDATA A paragraph of text However, each of these is an error: Error, cannot have a line break before a block eleme= nt A paragraph of text. A paragraph of text. Error, cannot have a line break between block elements A paragraph of text. A paragraph of text. Error, cannot have a line break after a block element When designing a DTD, it is wise to avoid pernicious mixed content. Unfortunately, the only way to correct the pernicious mixed content problem that already exists in DocBook is to require some sort of wrapper (a block element, or an inline like Phrase) around #PCDATA within table Entrys. This is annoying and inconvenient in a great many tables in which #PCDATA cells predominate and, in addition, differ from CALS. =3D=3D N [1] www.docbook.org -- 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 --- .\._/= _) --IJAclU0AInkryoed 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 iEYEARECAAYFAjx97U4ACgkQk6gHZCw343W7VgCfUR/uMcr0+3f35XQG0k0I9H2e 7UIAnRTuBWx4t4izC69TD6DB4ADt/IhX =LfLw -----END PGP SIGNATURE----- --IJAclU0AInkryoed-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message