Browsable WordprocessingML Basic Definition Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: doc/office/wordprocessingml/basic/extracted
Source used for this grammar: Hugo Brunelière, WordprocessingMLBasicDef 1.2, MSOfficeWord_WordprocessingMLBasicDef.ecore, 2005/07/01

Summary

Syntax

DateTimeType ::=
	[year]::Integer [month]::Integer [day]::Integer [hour]::Integer [minute]::Integer [second]::Integer
VersionType ::=
	[n]::Integer [nn]::Integer
ValueType ::=
	StringValue
ValueType ::=
	FloatValue
ValueType ::=
	DateTimeTypeValue
ValueType ::=
	BooleanValue
StringValue ::=
	[value]::String
FloatValue ::=
	[value]::Double
DateTimeTypeValue ::=
	[value]::DateTimeType
BooleanValue ::=
	[value]::Boolean
DocumentPropertiesCollection ::=
	[dp_wordDocument]::WordDocument [title]::String [subject]::String [keywords]::String [description]::String [category]::String [author]::String [lastAuthor]::String [manager]::String [company]::String [hyperlinkBase]::String [revision]::Integer [presentationFormat]::String [guid]::String [appName]::String [version]::VersionType [totalTime]::Integer [lastPrinted]::DateTimeType [created]::DateTimeType [lastSaved]::DateTimeType [pages]::Integer [words]::Integer [characters]::Integer [charactersWithSpaces]::Integer [bytes]::Integer [lines]::Integer [paragraphs]::Integer
CustomDocumentPropertiesCollection ::=
	[cdp_wordDocument]::WordDocument [customDocumentProperties]::CustomDocumentProperty+
CustomDocumentProperty ::=
	[customDocumentProperty_cdpe]::CustomDocumentPropertiesCollection [name]::String [value]::ValueType
SmartTagType ::=
	[smartTagType_ste]::SmartTagsCollection [namespaceuri]::String [name]::String [url]::String
SmartTagsCollection ::=
	[st_wordDocument]::WordDocument [smartTagTypes]::SmartTagType+
StringProperty ::=
	[val]::String
StringType ::=
	StringProperty
StringType ::=
	Text
StringType ::=
	DelText
StringType ::=
	InstrText
StringType ::=
	DelInstrText
StringType ::=
	[val]::String
BreakType ::=
	[bt_page]::ε
	[bt_column]::ε
	[bt_text_wrapping]::ε
NoteValue ::=
	[ftn_normal]::ε
	[ftn_separator]::ε
	[ftn_continuation_separator]::ε
	[ftn_continuation_notice]::ε
OnOffType ::=
	[oot_on]::ε
	[oot_off]::ε
FldCharTypeProperty ::=
	[fctp_begin]::ε
	[fctp_separate]::ε
	[fctp_end]::ε
WordDocument ::=
	[wd_smartTags]::SmartTagsCollection [wd_docProperties]::DocumentPropertiesCollection [wd_customDocProperties]::CustomDocumentPropertiesCollection [ignoreSubtree]::StringProperty [ignoreElements]::StringProperty [fonts]::FontsListElt [lists]::ListsElt [styles]::StylesElt [docPr]::DocPrElt [body]::BodyElt
DocPrElt ::=
	[dpe_wordDocument]::WordDocument
BodyElt ::=
	[be_wordDocument]::WordDocument [blockLevelElts]::BlockLevelElt+ [sectPr]::SectPrElt
BlockLevelElt ::=
	BlockLevelChunkElt
BlockLevelElt ::=
	CfChunk
BlockLevelChunkElt ::=
	ParaElt
BlockLevelChunkElt ::=
	RunLevelElt
ParaElt ::=
	[pPr]::ParaPrElt [pContentElts]::ParaContentElt+
ParaPrElt ::=
	[ppe_pElt]::ParaElt
ParaContentElt ::=
	RunElt
ParaContentElt ::=
	SimpleFieldElt
ParaContentElt ::=
	HLinkElt
ParaContentElt ::=
	SubDocElt
RunElt ::=
	[rPr]::RunPrElt [rContentElts]::RunContentElt+
RunPrElt ::=
	[rpe_rElt]::RunElt
RunContentElt ::=
	BreakElt
RunContentElt ::=
	NoBreakHyphen
RunContentElt ::=
	SoftHyphen
RunContentElt ::=
	AnnotationRef
RunContentElt ::=
	FootnoteRef
RunContentElt ::=
	EndnoteRef
RunContentElt ::=
	Separator
RunContentElt ::=
	ContinuationSeparator
RunContentElt ::=
	PgNum
RunContentElt ::=
	Cr
RunContentElt ::=
	Text
RunContentElt ::=
	DelText
RunContentElt ::=
	InstrText
RunContentElt ::=
	DelInstrText
RunContentElt ::=
	Footnote
RunContentElt ::=
	Endnote
RunContentElt ::=
	Picture
RunContentElt ::=
	Symbol
RunContentElt ::=
	Tab
RunContentElt ::=
	FldChar
BreakElt ::=
	[type]::BreakType
Text ::=
	[rce_rElt]::RunElt [val]::String
DelText ::=
	[rce_rElt]::RunElt [val]::String
InstrText ::=
	[rce_rElt]::RunElt [val]::String
DelInstrText ::=
	[rce_rElt]::RunElt [val]::String
NoBreakHyphen ::=
	[rce_rElt]::RunElt
SoftHyphen ::=
	[rce_rElt]::RunElt
AnnotationRef ::=
	[rce_rElt]::RunElt
FootnoteRef ::=
	[rce_rElt]::RunElt
EndnoteRef ::=
	[rce_rElt]::RunElt
Separator ::=
	[rce_rElt]::RunElt
ContinuationSeparator ::=
	[rce_rElt]::RunElt
PgNum ::=
	[rce_rElt]::RunElt
Cr ::=
	[rce_rElt]::RunElt
Footnote ::=
	[rce_rElt]::RunElt [n_blockLevelElts]::BlockLevelElt+ [type]::NoteValue [suppressRef]::OnOffType
Endnote ::=
	[rce_rElt]::RunElt [n_blockLevelElts]::BlockLevelElt+ [type]::NoteValue [suppressRef]::OnOffType
NoteElt ::=
	Footnote
NoteElt ::=
	Endnote
Picture ::=
	[rce_rElt]::RunElt
Symbol ::=
	[rce_rElt]::RunElt [font]::StringType [char]::StringType
SymElt ::=
	Symbol
SymElt ::=
	[font]::StringType [char]::StringType
Tab ::=
	[rce_rElt]::RunElt
FldChar ::=
	[rce_rElt]::RunElt [fldData]::StringType [fldCharType]::FldCharTypeProperty [fldLock]::OnOffType
FldCharElt ::=
	FldChar
FldCharElt ::=
	[fldData]::StringType [fldCharType]::FldCharTypeProperty [fldLock]::OnOffType
FontsListElt ::=
	[fle_wordDocument]::WordDocument
ListsElt ::=
	[le_wordDocument]::WordDocument
StylesElt ::=
	[se_wordDocument]::WordDocument
SectPrElt ::=
	[spe_bodyElt]::BodyElt
RunLevelElt ::=
	ε
CfChunk ::=
	[ble_bodyElt]::BodyElt [ble_note]::NoteElt
SimpleFieldElt ::=
	[pce_pElt]::ParaElt
HLinkElt ::=
	[pce_pElt]::ParaElt
SubDocElt ::=
	[pce_pElt]::ParaElt
PictureType ::=
	Picture
PictureType ::=
	ε
TabElt ::=
	Tab
TabElt ::=
	ε
Integer ::=
	integer
String ::=
	string
Boolean ::=
	"true"
	"false"

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