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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Scripting and XML

[ Lists Home | Date Index | Thread Index ]
  • From: Toby Speight <tms@ansa.co.uk>
  • To: "XML developers' list" <xml-dev@ic.ac.uk>
  • Date: 20 Oct 1997 12:43:45 +0100

-----BEGIN PGP SIGNED MESSAGE-----

Simon> Simon St.Laurent <URL:mailto:SimonStL@classic.msn.com>


>> The CDATA idea does work for what it is intended to be used for.
>> Text with no subelements, entity references or other markup.

>> In default SGML, a CDATA element's data is terminated by "</"
>> followed by any valid name start character (or the end of the
>> entity).  In XML, there is no name-start checking and every
>> start-tag must have a corresponding end-tag.

> In article <UPMAIL17.199710191801480696@classic.msn.com>, Simon
> wrote:

Simon> Why is it so difficult to create CDATA elements - which have to
Simon> be marked clearly in XML by start and end tags?  There is no
Simon> need in XML to stop CDATA at just any </ sequence, just the </
Simon> sequence which turns into the full end tag of the element.  Of
Simon> course, this would probably break compatibility with all my
Simon> favorite SGML parsers, at least if I wrote scripts that used </
Simon> at some point.

All the contributors to this thread so far seem to have concentrated on
the difficulties posed by recognising the _end_ of a CDATA content -
while checking for a matching GI adds complexity, it is not impossible.
But one thing that *is* impossible is for a non-validating parser to
know that '<' followed by a name token is to be read as data, rather
than as a start-tag.  You need to read the DTD to know the content is
CDATA.  (Okay, you could use the rmd parameter of the XML declaration,
but encouraging authors to do this would remove some of XML's advantages.
One in particular being the ability to parse much of the document while
fetching the external subset)



-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQB1AwUBNEtC5+dsuUurvcRtAQGu2AL+Jy+9Ja51J9X+tC1ghlvA9IvGvHvAelJu
K42v2erQ12ErzQ6Z3G1XFgqA0FuVHUIEPtLmySlhyqpaLFVaGavQxNUG8V23QfC6
TgvNRKwbzDbMJBRL06rHrp9ewjHgZz0o
=u7Sg
-----END PGP SIGNATURE-----
-- 

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