Browsable WordprocessingML Styles Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: doc/office/wordprocessingml/styles/extracted
Source used for this grammar: Hugo Brunelière, WordprocessingMLStyles 1.2, MSOfficeWord_WordprocessingMLStyles.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]::ε
HintType ::=
	[ht_default]::ε
	[ht_fareast]::ε
	[ht_cs]::ε
StyleKindValue ::=
	[skv_paragraph]::ε
	[skv_character]::ε
	[skv_table]::ε
	[skv_list]::ε
UnderlineProperty ::=
	[val]::UnderlineValues [color]::String
UnderlineValues ::=
	[uv_single]::ε
	[uv_words]::ε
	[uv_double]::ε
	[uv_thick]::ε
	[uv_dotted]::ε
	[uv_dotted_heavy]::ε
	[uv_dash]::ε
	[uv_dashed_heavy]::ε
	[uv_dash_long]::ε
	[uv_dash_long_heavy]::ε
	[uv_dot_dash]::ε
	[uv_dash_dot_heavy]::ε
	[uv_dot_dot_dash]::ε
	[uv_dash_dot_dot_heavy]::ε
	[uv_wave]::ε
	[uv_wavy_heavy]::ε
	[uv_wavy_double]::ε
	[uv_none]::ε
HighlightColorValues ::=
	[hcv_black]::ε
	[hcv_blue]::ε
	[hcv_cyan]::ε
	[hcv_green]::ε
	[hcv_magenta]::ε
	[hcv_red]::ε
	[hcv_yellow]::ε
	[hcv_white]::ε
	[hcv_dark_blue]::ε
	[hcv_dark_cyan]::ε
	[hcv_dark_green]::ε
	[hcv_dark_magenta]::ε
	[hcv_dark_red]::ε
	[hcv_dark_yellow]::ε
	[hcv_dark_gray]::ε
	[hcv_light_gray]::ε
	[hcv_none]::ε
VerticalAlignRunType ::=
	[vart_baseline]::ε
	[vart_superscript]::ε
	[vart_subscript]::ε
JustificationValue ::=
	[jv_left]::ε
	[jv_center]::ε
	[jv_right]::ε
	[jv_both]::ε
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 ::=
	TableElt
BlockLevelChunkElt ::=
	RunLevelElt
ParaElt ::=
	[pPr]::ParaPrElt [pContentElts]::ParaContentElt+
ParaPrElt ::=
	[ppe_pElt]::ParaElt [ppe_styleElt]::StyleElt [pStyle]::StringProperty [keepNext]::OnOffType [keepLines]::OnOffType [pageBreakBefore]::OnOffType [supressLineNumbers]::OnOffType [suppressAutoHyphens]::OnOffType [contextualSpacing]::OnOffType [bidi]::OnOffType [justification]::JustificationValue
ParaContentElt ::=
	RunElt
ParaContentElt ::=
	SimpleFieldElt
ParaContentElt ::=
	HLinkElt
ParaContentElt ::=
	SubDocElt
RunElt ::=
	[rPr]::RunPrElt [rContentElts]::RunContentElt+
RunPrElt ::=
	[rpe_rElt]::RunElt [rpe_styleElt]::StyleElt [rStyle]::StringProperty [rFonts]::FontsElt [bold]::OnOffType [bold_cs]::OnOffType [italic]::OnOffType [italic_cs]::OnOffType [capitals]::OnOffType [smallCapitals]::OnOffType [strike]::OnOffType [doubleStrike]::OnOffType [outline]::OnOffType [shadow]::OnOffType [emboss]::OnOffType [imprint]::OnOffType [noProof]::OnOffType [vanish]::OnOffType [specVanish]::OnOffType [rtl]::OnOffType [cs]::OnOffType [underline]::UnderlineProperty [color]::String [highlight]::HighlightColorValues [verticalAlign]::VerticalAlignRunType [language]::LangElt
LangElt ::=
	[le_runPrElt]::RunPrElt [val]::String [bidi]::String
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
TableElt ::=
	[tblPr]::TablePrElt [tblGrid]::TableGridElt [tblContent]::TableContentElt+
TablePrElt ::=
	[tpe_tblElt]::TableElt [tpe_styleElt]::StyleElt
TableGridElt ::=
	[tge_tblElt]::TableElt
TableContentElt ::=
	[tce_tblElt]::TableElt [tr]::RowElt+ [tce_runLevelElts]::RunLevelElt
RowElt ::=
	[re_tblContentElt]::TableContentElt [tblPrEx]::TablePrExElt [trPr]::TableRowPrElt [rowContent]::RowContentElt+
TablePrExElt ::=
	[tpee_rowElt]::RowElt
TableRowPrElt ::=
	[tpe_rowElt]::RowElt [trpe_styleElt]::StyleElt
RowContentElt ::=
	[rce_rowElt]::RowElt [tc]::TableCellElt+ [rce_runLevelElts]::RunLevelElt
TableCellElt ::=
	[tce_rowContentElt]::RowContentElt [tcPr]::TableCellPrElt [tce_content]::BlockLevelElt+
TableCellPrElt ::=
	[tcpe_tableCellElt]::TableCellElt [tcpe_styleElt]::StyleElt
FontsListElt ::=
	[fle_wordDocument]::WordDocument [defaultFonts]::FontsElt [fonts]::FontElt+
FontsElt ::=
	[fse_fontsListElt]::FontsListElt [fse_runPrElt]::RunPrElt [hint]::HintType [ascii]::StringType [h_ansi]::StringType [fareast]::StringType [cs]::StringType
FontElt ::=
	[fe_fontsListElt]::FontsListElt [name]::StringType [altName]::StringProperty
StylesElt ::=
	[se_wordDocument]::WordDocument [versionOfBuiltInStylenames]::Double [styles]::StyleElt+
StyleElt ::=
	[se_stylesElt]::StylesElt [type]::StyleKindValue [styleId]::StringType [default]::OnOffType [name]::StringProperty [aliases]::StringProperty [sti]::Double [basedOn]::StringProperty [next]::StringProperty [link]::StringProperty [autoRedefine]::OnOffType [hidden]::OnOffType [semiHidden]::OnOffType [locked]::OnOffType [personal]::OnOffType [personalCompose]::OnOffType [personalReply]::OnOffType [rsid]::StringType [se_pPr]::ParaPrElt [se_rPr]::RunPrElt [se_tblPr]::TablePrElt [se_trPr]::TableRowPrElt [se_tcPr]::TableCellPrElt
ListsElt ::=
	[le_wordDocument]::WordDocument
SectPrElt ::=
	[spe_bodyElt]::BodyElt
RunLevelElt ::=
	[rle_tblContentElt]::TableContentElt [rle_rowContentElt]::RowContentElt
CfChunk ::=
	[ble_bodyElt]::BodyElt [ble_note]::NoteElt [ble_tableCellElt]::TableCellElt
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. []