W3C home > Mailing lists > Public > www-math@w3.org > March 1998

Re: Collapsing Whitespace in Input

From: Russell Steven Shawn O'Connor <roconnor@wronski.math.uwaterloo.ca>
Date: Mon, 23 Mar 1998 09:17:36 -0500 (EST)
To: www-math@w3.org
Message-ID: <Pine.SOL.3.95q.980323091051.8547A-100000@wronski.math.uwaterloo.ca>
On Mon, 23 Mar 1998, Bruce Smith wrote:

> This problem should be clarified somehow in the final release.
> One possibility is to strike that incorrect sentence,
> and suggest instead that zero-width entities can be added around
> or between whitespace characters that should not be collapsed,
> e.g.
> 
>   <mtext>Theorem 1: &ZeroWidthSpace;</mtext>
> 
> or (for two spaces in the middle)
> 
>   <mtext>Theorem &ZeroWidthSpace; 1:</mtext>
> 
> Another possibility is to add an attribute to prevent the collapsing.
> I vaguely recall such an attribute being suggested in some version
> of the XML proposal.

I think you are referring to the `xml:space' attribute

<!ATTLIST mtext xml:space (default|preserve) 'default'>

<mtext xml:space="preserve">Theorem  1: </mtext>

This attribute will have to be added to the DTD for all applicable
elements.

-- 
Russell O'Connor                           roconnor@uwaterloo.ca
    <URL:http://www.undergrad.math.uwaterloo.ca/%7Eroconnor/>
"And truth irreversibly destroys the meaning of its own message"
-- Anindita Dutta, "The Paradox of Truth, the Truth of Entropy"
Received on Monday, 23 March 1998 09:17:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:47 GMT