[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xml-dev
Subject:    Re: [xml-dev] Many different syntaxes in XML - is that good language design?
From:       Peter Flynn <peter () silmaril ! ie>
Date:       2022-03-07 20:28:22
Message-ID: cd89fad3-d341-127a-5138-d6cce5214921 () silmaril ! ie
[Download RAW message or body]

On 07/03/2022 15:52, Pete Cordell wrote:
> On 07/03/2022 14:20, Norman Gray wrote:
>> [...] only two characters which shift to 'markup' (TeX, which is
>> doing the same thing in a way, has 16 different categories of
>> character).

And probably many more users in the document markup field than XML, and 
while I get many complaints about LaTeX, the plethora of markup 
characters isn't a FAQ :-)

>> The following 'markup declaration' could be 'DOCTYPE' or 
>> '[CDATA[' (and a couple more). 

Quite a lot more.

> - "<" means escape from text flow
> 
> - If "<" is followed by a "!" it is a standard defined "meta" data item 
> / directive.

A Declaration which can only occur in a DTD (except for a comment or a 
CDATA Marked Section).

> (It does make me wonder why the CDATA section 'directive' wasn't just 
> <!CDATA[...]>.  Even more curious, given all the SGML things that got 
> dropped, is how it got included in XML.  It creates just as many 
> problems as it solves.)

If you write tech doc about markup it is the one marked section that is 
essential. While it is possible to include chunks of examples done with 
&lt; it's error-prone and tedious. A CDATA Marked Section allows you to 
drop in a chunk of markup and know that it won't be parsed despite the 
occurrence of < and & characters. I'm not aware of any problems.

Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic