OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Whitespace question

[ Lists Home | Date Index | Thread Index ]
  • From: Randy Bryan <rbryan@CapAccess.org>
  • To: XML Developer List <xml-dev@ic.ac.uk>
  • Date: Tue, 3 Aug 1999 21:39:51 -0400 (EDT)

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.

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

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@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@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS