Re: Many different syntaxes in XML - is that good language design?

Peter Flynn <[email protected]>
Newsgroups gmane.text.xml.devel
Organization Silmaril Consultants
Message-ID <[email protected]>
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: [email protected]
subscribe: [email protected]
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.