W3C home > Mailing lists > Public > xml-editor@w3.org > October to December 1999

how to put consecutive spaces in an attribute value?

From: Dan Connolly <connolly@w3.org>
Date: Tue, 19 Oct 1999 16:48:31 -0500
Message-ID: <380CE72F.CF1CDEFF@w3.org>
To: xml-editor@w3.org
"The string type  may take any literal
string as a value"
	 -- http://www.w3.org/TR/1998/REC-xml-19980210#sec-attribute-types

So... how do I express "x  y" (that is: an 'x' character, followed by
two spaces, followed by a 'y' character) as an XML attribute value?

In conversation with James Clark (that I thought was recorded, but
I can't find the record) he said you can't, and the text agrees
with him:

"the XML processor must further process the
normalized attribute value by discarding any leading and trailing space
characters, and by replacing sequences of space (#x20) characters by a
single space
(#x20) character."
	-- http://www.w3.org/TR/1998/REC-xml-19980210#AVNormalize

Dan Connolly, W3C
tel:+1-512-310-2971 (office, mobile)
mailto:connolly.pager@w3.org (put your tel# in the Subject:)
Received on Tuesday, 19 October 1999 17:48:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:37:39 UTC