Re: Interpretation of RE

Arthur van Hoff (Arthur.Vanhoff@Eng.Sun.COM)
Tue, 11 Apr 95 12:37:19 EDT

Hi Dave,

> On Mon, 10 Apr 1995, Arthur van Hoff wrote:
>
> > element. If that is true, what is the correct interpretation of RE
> > iside a PRE content? For example:
> >
> > <pre>
> > This is <b>
> > bold
> > </b> text.
> > </pre>
> >
> > Should this be interpreted as:
> >
> > <pre>
> > This is <b>bold</b> text.
> > </pre>
>
> No, that is not correct. <pre> means preformatted ... that is use a
> fixed pitch font and break the lines where the user did.
> Section 10.2 of the March 29 HTML 2 draft is quite clear. You example
> should show as:
>
> This is
> BOLD
> text.

I was afraid you would say that. Section 7.6.1 "Record Boundaries" of
the SGML specification states:

The first RE in an element is ignored if no RS, data, or
proper subelement preceded it.

The last RE in an element is ignored if no RS, data, or
proper subelement follows it.

Does this mean that HTML cannot be parsed by a strict SGML parser?

Have fun,

Arthur van Hoff (avh@eng.sun.com)
http://java.sun.com/people/avh/
Sun Microsystems Inc, M/S UPAL02-301,
100 Hamilton Avenue, Palo Alto CA 94301, USA
Tel: +1 415 473 7242, Fax: +1 415 473 7104