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

An incompatible CData idea

  • From: Jarle Stabell <jarle.stabell@d...>
  • To: xml-dev@i...
  • Date: Mon, 27 Oct 1997 18:08:51 +0100

cdata symbols
Explicit CData Marker

Instead of having to confront a DTD in order to find out whether an
element(type) is CData or not, I feel it would be better if this info were
explicit in the document instance.
F.i. by adding a special CData symbol at the end of the start-tag if one
wants its content treated as CData.
If the symbol is present, the content is "plain/unstructured" text (CData),
if it's not, the content is tagged/structured text (Mixed/PCData).

Example: (Here the symbol '*' is used to indicate CData)

<MyText>This is not CData, <MyText*>but this is! Here I can write &, <,
<element> or whatever I want without being concerned about clashing with
other "magic" symbols until the end-tag.</MyText></MyText>


(Perhaps it also would be natural to have a special signal at the end-tag
as well as at the start-tag.)


Pro:
* Easy for the user, no need to remember/have DTD knowledge about
CData/PCData when reading or writing a document without DTD-aware tools.

* Easy for the parser (for the same reason)

Con:
* Incompatible with SGML


Sorry if suggestions like these already have been debated (perhaps decades
ago!) and turned down.


Cheers,
Jarle Stabell


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.