473,378 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Syntax Definition Language used in W3C XML page


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

Jul 20 '05 #1
3 1794
he
muchan wrote:

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

Jul 20 '05 #2
muchan <us****@usenet.usenet> wrote in message news:<EQ******************@news.siol.net>...
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.
Jul 20 '05 #3
Andy Dingley wrote:
muchan <us****@usenet.usenet> wrote in message news:<EQ******************@news.siol.net>...

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.


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

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
75
by: David MacQuigg | last post by:
Seems like we need a simple way to extend Python syntax that doesn't break existing syntax or clash with any other syntax in Python, is easy to type, easy to read, and is clearly distinct from the...
14
by: Sandy Norton | last post by:
If we are going to be stuck with @decorators for 2.4, then how about using blocks and indentation to elminate repetition and increase readability: Example 1 --------- class Klass: def...
7
by: Senthilraja | last post by:
I have the following program using templates. Someone please let me know the syntax to be used for defining the member functions push, pop etc. as non-inline functions. #include <iostream>...
8
by: Ike | last post by:
I am hoping someone can help me with the proper syntax for this. I have an attribute, called, say "name," such that: <set name="something">thename</set> However, the value for name, is...
15
by: chirs | last post by:
I am trying to understand a piece of code. In a javascrpit file, there is a function: function ItemStyle(){ var names=; addProps(this,arguments,names,true); }; In the html file, it calls...
5
by: Tom Berry | last post by:
We currently are trying our first transformation from VB6 to VB.Net. Of course, the Printer object is gone, but I'm having trouble finding the replacement syntax necessary to perform similar...
19
by: Nicolas Fleury | last post by:
Hi everyone, I would to know what do you think of this PEP. Any comment welcomed (even about English mistakes). PEP: XXX Title: Specialization Syntax Version: $Revision: 1.10 $...
17
by: Keith H Duggar | last post by:
Can anyone point me to the origin and history of the dot syntax for accessing structures? Were there languages prior to C that used it? Who invented it? etc.
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.