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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Whitespace in EMPTY model

[ Lists Home | Date Index | Thread Index ]
  • From: Chris Maden <crism@oreilly.com>
  • To: xml-dev@ic.ac.uk
  • Date: Tue, 20 Oct 1998 16:07:24 -0400 (EDT)

[Dean Roddey]
> If the model is EMPTY, what happens to the whitespace between that
> element's begin/end tags? Is that defined anywhere? Should it always
> just be skipped?  What if the element has the XML whitespace
> attribute or the parser was told to maintain ignorable whitespace?

That's a good question.

I was ready to reply that an EMPTY element must have nothing between
the start- and end-tags, but that's not immediately clear upon reading
the spec.

   Validity Constraint: Element Valid

   An element is valid if there is a declaration matching elementdecl
   where the Name matches the element type, and one of the following
   holds:
    1. The declaration matches EMPTY and the element has no content.

but it's not clear whether "no content" prohibits ignorable
whitespace.

-Chris
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>

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/
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