Syntax Definition Language used in W3C XML page

muchan

Usenet Archive
Joined
Aug 17, 2000
Messages
5
Reaction score
0
A simple question. (Sorry, if it's already in FAQ)

What is the syntax definition language used in the XML 1.0 page of the W3C <http://www.w3.org/TR/REC-xml/>?

I searched some syntax definition lanugages, and found that EBNF (ISO/IEC 14977 : 1966(E)) to be the most standard one, but after reading through the EBNF pecification, I found that W3C page uses '::=' for difining-symbol, where EBNF uses just '='.
:(

Is W3C using basically EBNF syntax, but just ::= as defining-symbol? Or is there some other spec that W3C offcially decided to use? Or is there somewhere a summary what W3C's difinition standard differs from EBNF?

Thanks in advance.

muchan
 

dr7tbien

Usenet Archive
Joined
Jul 12, 2004
Messages
1
Reaction score
0
he said:
A simple question. (Sorry, if it's already in FAQ)

What is the syntax definition language used in the XML 1.0 page
of the W3C <http://www.w3.org/TR/REC-xml/>?

I searched some syntax definition lanugages, and found that
EBNF (ISO/IEC 14977 : 1966(E)) to be the most standard one,
but after reading through the EBNF pecification, I found that
W3C page uses '::=' for difining-symbol, where EBNF uses just '='.
:(

Is W3C using basically EBNF syntax, but just ::= as defining-symbol?
Or is there some other spec that W3C offcially decided to use?
Or is there somewhere a summary what W3C's difinition standard differs
from EBNF?

Thanks in advance.

muchan
 

Andy Dingley

Usenet Archive
Joined
Feb 23, 2000
Messages
3,303
Reaction score
0
muchan said:
What is the syntax definition language used in the XML 1.0 page of the W3C <http://www.w3.org/TR/REC-xml/>?

BNF (Backus-Naur Format), the original flavour, which dates back to around 1960 and the Algol 60 language spec (the oldest ref I've ever used with it). This is probably the most common variant.

The defining symbol is "::="

If you read
http://www.cl.cam.ac.uk/~mgk25/iso-14977.pdf it might explain some of the reasoning behind the later EBNF, where the defining symbol changed to "=". I forget why, I've rarely seen this syntax used and I've never written it.
 

muchan

Usenet Archive
Joined
Aug 17, 2000
Messages
5
Reaction score
0
Andy said:
BNF (Backus-Naur Format), the original flavour, which dates back to around 1960 and the Algol 60 language spec (the oldest ref I've ever used with it). This is probably the most common variant.

The defining symbol is "::="

If you read
http://www.cl.cam.ac.uk/~mgk25/iso-14977.pdf it might explain some of the reasoning behind the later EBNF, where the defining symbol changed to "=". I forget why, I've rarely seen this syntax used and I've never written it.

Thank you very much.

I read the iso-14977.pdf prior to asking question, but didn't know that original BNF used "::=". The document tells about the reason to extend BNF, but doesn't explain muchan about the reason to have changed the symbols.

muchan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,799
Members
249,594
Latest member
henrywalsh

Latest Threads

Top