Whitespace question

Randy Bryan rbryan at CapAccess.org
Wed Aug 4 03:34:40 BST 1999


Thanks for your reply.  
I have another similar question.
Suppose I want to set xml:space to "default" for all of
the character data.  Is this valid?

<?xml version="1.0" standalone="yes" xml:space="default"?>

It doesn't seem to allow it according to the EBNF, but I 
could be wrong.  If it's not allowed, how would I go
about setting "default" for all of the character data
in the text?  I have no use for DTD's if that matters.

<quote>
On Mon, 19 Jul 1999, Randy Bryan wrote:
> The XML specification doesn't allow
> for whitespace in several places.

This is because it is a derivative of SGML, which is a delimiter-based
language, not a token-based one.
Another way to look at it is that the </ in an end tag is a single
token, although </ this> is not a legal example, so that isn't really
as helpful as one might like.

In writing our book on XML, Ian and I did no better, I think, than
suggesting that readers simply learn the rules :-(

Lee (co-author, The XML Specification Guide, Wiley)

--
Liam Quin, Barefoot Computing, Toronto;  The barefoot agitator
l i a m q u i n     at    i n t e r l o g    dot   c o m
Ankh on irc.sorcery.net, ankle5/Ankle{MD} on DALnet
</quote>


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list