W3C home > Mailing lists > Public > www-html@w3.org > September 2008

DTD interrogations

From: Dubuc Jean-Pierre <jdubuc@oqlf.gouv.qc.ca>
Date: Thu, 25 Sep 2008 15:45:57 -0400
To: "'www-html@w3.org'" <www-html@w3.org>
Message-ID: <BD03ABA010D90546AEA09271A47A275C0B0EFFE2F0@mercier.oqlf.gouv.qc.ca>
Hi all,

I'm learning how to read and understand DTD and came up with those interrogations.
ref.: http://www.w3.org/TR/REC-html40/intro/sgmltut.html#h-3.3

According to this statement :
A | B   Either A or B must occur, but not both.

This element declaration :
<!ELEMENT DL    - - (DT|DD)+>

Should read in my perception :
The DL element must contain one or more of either DT or DD elements in any order, but not both.

Instead of the original statement :
The DL element must contain one or more DT or DD elements in any order.

Or I suggest to ajust the "|" operator statement to :
A | B   Either A or B must occur.

What do you think ?

Also, I'd like to know according to this statement :
+(A)    A may occur.

How many time "may it occurs" if it occurs ? One time only ? Or more than one ?

If more than one, what's the difference with the following statement ?
A*  A may occur zero or more times.

And why specify "zero" in the preceding statement ? Isn't it redundant since it "may" occur ?

I suggest changing it to :
A*  A may occur many times.

What do you think ?


Jean-Pierre Dubuc
Received on Thursday, 25 September 2008 20:44:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:21 UTC