[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Is whitespace within general entities ignorable?

  • From: "Christopher R. Maden" <crism@m...>
  • To: xml-dev@l...
  • Date: Thu, 01 Mar 2001 00:15:24 -0800

whitespace c
At 02:46 28-02-2001, Rob Lugt wrote:
>Chris, I think this is a strong argument and I, for one, am convinced.  This
>also seems to broadly agree with the way that existing implementations have
>dealt with the issue.  However, if we loyally stick to the logic from clause
>4.4 we can extend the discussion to character references (which are also
>'included').  In that case we may be presented with this situation:-
>
><?xml version = "1.0"?>
><!DOCTYPE tests [
><!ELEMENT tests (test)*>
><!ELEMENT test (child)*>
>]>
><tests>
>   <test>&#32;</test>  <!-- valid -->
>   <test>&#33;</test>  <!-- invalid -->
></tests>
>
>Do you agree that a validating processor should allow the first case and
>disallow the second?  Does this raise any eyebrows with the rest of the
>list?

That seems correct to me.  Character 32 is a space, which is ignored in 
test's element content.  Character 33 is an exclamation point, which is not 
ignored, and since test does not have mixed content, it's not legal.  To 
me, this seems much more trivial than the whitespace general entity issue.

I'm a bit surprised that there's confusion about that - it's another one of 
those things that, as an SGML geek, I just "knew" worked, but the XML 
Recommendation isn't explicit about.  (There are sadly more of these than 
there should be (0), but to Tim and Michael's extreme credit, vastly fewer 
than there could have been.)

-Chris
-- 
Christopher R. Maden, XML Consultant
<URL: http://crism.maden.org/consulting/ >


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.