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

The raw and the cooked (was: there's empty ...)

  • From: John Cowan <cowan@l...>
  • To: XML Dev <xml-dev@i...>
  • Date: Fri, 30 Oct 1998 10:05:53 -0500

the raw and the cooked
Henry S. Thompson writes:

> In order
> to make sense of a claim that the two entity references in my example
> are valid, but the two CDATA sections are not, we are left in the
> difficult position of saying that the validity constraint in question
> applies AFTER entity expansion but BEFORE CDATA section
> interpretation,

I don't know what "CDATA section interpretation" means.  CDATA
sections are not "interpreted", but merely scanned to find the
end.

In fact, CDATA elements can be returned to the application as
specialized blocks (the DOM allows it, though SAX does not do so);
an XML parser *never* needs to look inside a CDATA section after
its terminator has been found.

> which is really weird, because wrt e.g. mixed content
> models, the constraint clear applies AFTER CDATA section
> interpretation.

I don't understand which constraint you are referring to in the
case of mixed content models.  Elements with element content can
only have S between the tags, and CDATA elements aren't S.


> So my conclusion is that in fact consistency requires that CDATA
> sections containing nothing but whitespace SHOULD be valid as part of
> the content of element-only content element types.  In any case, I
> think this issue needs to be clarified in any corrigendum which may be
> forthcoming.
> 
> ht
> 
> Resource note:
> 
> I tried all the online validators listed at
> http://www.oasis-open.org/cover/check-xml.html:
> 
> * The STG one worked as discussed above;
> 
> * the Koala one showed me blank pages no matter how I
>   invoked it;
> 
> * the xml.t2000.co.kr offers a bewildering array of (to me
>   confused) choices, including validation with or without a DTD (?), but
>   in any case rejected both the entity references and both the CDATA
>   sections;
> 
> *  the WebTech validator appears to be using SP, but set up incorrectly for XML
> 
> So from four 'validation services', four different answers.  I rest my
> case.
> 
> ht
> --
>   Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
>      2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
>             Fax: (44) 131 650-4587, e-mail: ht@c...
>                      URL: http://www.ltg.ed.ac.uk/~ht/
> 
> xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
> Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
> To (un)subscribe, mailto:majordomo@i... the following message;
> (un)subscribe xml-dev
> To subscribe to the digests, mailto:majordomo@i... the following message;
> subscribe xml-dev-digest
> List coordinator, Henry Rzepa (mailto:rzepa@i...)

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@c...
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.