I read Extensible Markup Language (XML) 1.0 (Fifth Edition) W3C Recommendation 26 November 2008
3.2 Element Type Declarations has:
An element type declaration takes the form:
Element Type Declaration
elementdecl ::= <!ELEMENT Name contentspec >
contentspec ::= 'EMPTY' | 'ANY' | Mixed | children
And in 3.2.1 Element Content has: Element-content Models
children ::= (choice | seq) ('?' | '*' | '+')?
cp ::= (Name | choice | seq) ('?' | '*' | '+')?
choice ::= '(' S? cp ( S? '|' S? cp )+ S? ')'
seq ::= '(' S? cp ( S? ',' S? cp )* S? ')'
After it I had question. Which different between 'contentspec' and 'content model'.
Maybe contentspec is ANY, PCDATA, Mixed, children.
And only children has 'content model': (elemName1 | elemName2, elemName3, elemET).
(Name | , '?' '*' '+'), sequence, choice - all that is 'content model'. Right?
Does Mixed have 'content model'?
In tutorial write often:
<!ELEMENT Name content_model >