Re: line breaks vs. line elements (comments on XHTML 2.0 text module)

Peter Sheerin:

> So, in XHTML, this would be:

> <p>The displacements of the membrane
> under load are described by the equations<br />
> <math>
> [two fancy math expressions were here]
> </math>
> where r is the radial coordinate, a is the
> radius of the clamping edge, w is the
> transverse...</p>

> In the printed version of the article, the text before the equations are printed
> as two lines, but since you can't know that in advance for the XHTML version, I
> don't see how the <line> element could ever duplicate this behavior.

I think the following will do what you intend:

  <p><line>The displacements of the membrane
  under load are described by the equations</line>
  <math>
  [two fancy math expressions were here]
  </math>
  where r is the radial coordinate, a is the
  radius of the clamping edge, w is the
  transverse...</p>

The "line" element will be automatically broken onto two display lines
if needed.

-- 
Bertilo Wennergren <bertilow@gmx.net> <http://www.bertilow.com>

Received on Thursday, 7 November 2002 13:06:49 UTC