This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Solution to funky TOCs in HTML Help...
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: Solution to funky TOCs in HTML Help...
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: Wed, 15 Aug 2001 07:24:19 -0400
- List-Id: <docbook-apps.lists.oasis-open.org>
- References: <3906C56A7BD1F54593344C05BD1374B10286E296@SUS-MA1IT01>
/ "Bradford, Denis" <denisb@rational.com> was heard to say:
| >You should always have in mind that XML (and thus XML version of
| >DocBook) is much more sensitive to spaces and newlines than most typical
| >SGML appliacations. For example:
|
| According to my XSLT book, XSLT has lots of ways to control the generation
| of white-space nodes - elements like space, preserve-space, and strip-space
| elements - in contrast to HTML where the spec is not very precise, and so
| different browsers handle whitespace differently.
The DocBook stylesheets apply preserve-space and strip-space appropriately.
This is why whitespace between paragraphs is irrelevant. But whitespace
in an element that may contain mixed content can't be stripped...it might
be what the author intended! So
<xsl:strip-space elements="title"/>
would be wrong.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | One stops being a child when one
http://www.oasis-open.org/docbook/ | realizes that telling one's
Chair, DocBook Technical Committee | trouble does not make it
| better.--Cesare Pavese
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>