David Birnbaum writes about unwanted REs in mixed content:
>I'm also afraid I can't offer an appealing solution within SGML.
I agree that SGML is too screwy here to fix. But I think that
applications can handle the matter (many do not; for example,
in a browser-that-shall-be-nameless, one can hide an element,
such as a Docbook Indexterm, but if the Indexterm is on a line
by itself, the RE shows up as a space because it "isn't inside
the hidden element").
In actually typesetting SGML content, you'd never want a RE
following a opening tag to be rendered, so the rendering app
should discard it. Similarly, except in line-specific contexts
(HTML PRE), the app should discard any RE that follows an RE
(solves the Indexterm case above).
Terry Allen ([log in to unmask]) O'Reilly & Associates, Inc.
Editor, Digital Media Group 101 Morris St.
Sebastopol, Calif., 95472
monthly column at: http://gnn.com/meta/imedia/webworks/allen/
A Davenport Group sponsor. For information on the Davenport
Group see ftp://ftp.ora.com/pub/davenport/README.html