Browsable DTD Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: §wip/metasyntax/dtd/extracted
Source used for this grammar: Pierrick Guyard, DTD.ecore, 2005/06/20

Summary

Syntax

Occurence ::=
	[zeroOrOne]::ε
	[zeroOrMore]::ε
	[oneOrMore]::ε
	[one]::ε
OtherAttributeTypeEnum ::=
	[cdata]::ε
	[id]::ε
	[idref]::ε
	[entityType]::ε
	[entities]::ε
	[nmtoken]::ε
	[nmtakens]::ε
TypeDescription ::=
	Notation
TypeDescription ::=
	Entity
TypeDescription ::=
	Element
TypeDescription ::=
	AttributeList
TypeDescription ::=
	AttributeDescription
Notation ::=
	[content]::String
Entity ::=
	[content]::String [isInternal]::Boolean
Element ::=
	AnyElement
Element ::=
	RestrictedElement
AnyElement ::=
	ε
RestrictedElement ::=
	[content]::ElementContent
ElementContent ::=
	Mixed
ElementContent ::=
	Children
Mixed ::=
	[elements]::String
Children ::=
	Sequence
Children ::=
	Leaf
Children ::=
	Choice
Sequence ::=
	[children]::Children
Leaf ::=
	[elementName]::String
Choice ::=
	[childrenChoice]::Children
AttributeList ::=
	[containsAttributes]::AttributeDescription+
AttributeDescription ::=
	NoDefaultValue
AttributeDescription ::=
	DefaultValue
NoDefaultValue ::=
	[isRequired]::Boolean
DefaultValue ::=
	[value]::String [isFixed]::Boolean
AttributeType ::=
	Enumeration
Enumeration ::=
	[values]::String
OtherAttributeType ::=
	[type]::OtherAttributeTypeEnum
String ::=
	string
Boolean ::=
	"true"
	"false"

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []