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

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

  • From: Norman Gray <norman.gray@glasgow.ac.uk>
  • To: Roger L Costello <costello@mitre.org>
  • Date: Mon, 07 Mar 2022 14:20:51 +0000

Re:  Many different syntaxes in XML - is that good language des
Roger, hello.

On 7 Mar 2022, at 12:14, Roger L Costello wrote:

> Phew! That is a lot of different syntaxes.

As Peter mentioned, those aren't different 'syntaxes'.  There's just one syntax being described here -- the document syntax -- which has a relatively small number of lexical elements.  Thus 'the syntax' is the set of rules about how all of those lexical elements may be combined.  And as Shaun mentions, XML is remarkable for being an embedded syntax (embedded within the flow of document text, that is), which has only two characters which shift to 'markup' (TeX, which is doing the same thing in a way, has 16 different categories of character).

A possibly interesting tangent: there are fewer lexical elements here than might be obvious, depending on your point of view.  One of these is '<!', which is what SGML described as 'markup declaration open', meaning a bit of markup that isn't an element, but is instead somewhat 'meta'.  The following 'markup declaration' could be 'DOCTYPE' or '[CDATA[' (and a couple more).  Entertainingly, it could also be empty: '<!>', though that empty markup declaration could contain commented text: the comment characters in SGML were '--' as open and close characters, which could appear anywhere; thus you could, I recall have

  <element -- here's an comment -- att='val'/>,

Also '<!>' could have comments between a pair of '--' strings: <!-- comment -->.  XML says that 'comments open with '<!--' and close with '-->', but this is where those odd strings come from.

Best wishes,

Norman


-- 
Norman Gray  :  https://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.