
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
DateTimeType, VersionType, ValueType, StringValue, FloatValue, DateTimeTypeValue, BooleanValue, DocumentPropertiesCollection, CustomDocumentPropertiesCollection, CustomDocumentProperty, SmartTagType, SmartTagsCollection, StringProperty, StringType, BreakType, NoteValue, OnOffType, FldCharTypeProperty, HintType, StyleKindValue, UnderlineProperty, UnderlineValues, HighlightColorValues, VerticalAlignRunType, JustificationValue, WordDocument, DocPrElt, BodyElt, BlockLevelElt, BlockLevelChunkElt, ParaElt, ParaPrElt, ParaContentElt, RunElt, RunPrElt, LangElt, RunContentElt, BreakElt, Text, DelText, InstrText, DelInstrText, NoBreakHyphen, SoftHyphen, AnnotationRef, FootnoteRef, EndnoteRef, Separator, ContinuationSeparator, PgNum, Cr, Footnote, Endnote, NoteElt, Picture, Symbol, SymElt, Tab, FldChar, FldCharElt, TableElt, TablePrElt, TableGridElt, TableContentElt, RowElt, TablePrExElt, TableRowPrElt, RowContentElt, TableCellElt, TableCellPrElt, FontsListElt, FontsElt, FontElt, StylesElt, StyleElt, ListsElt, SectPrElt, RunLevelElt, CfChunk, SimpleFieldElt, HLinkElt, SubDocElt, PictureType, TabElt, Integer, String, Boolean), 0 root (—), 4 top (SymElt, FldCharElt, PictureType, TabElt), 1 bottom (Double 3).[year], [month], [day], [hour], [minute], [second], [n], [nn], [value] 5, [dp_wordDocument], [title], [subject], [keywords], [description], [category], [author], [lastAuthor], [manager], [company], [hyperlinkBase], [revision], [presentationFormat], [guid], [appName], [version], [totalTime], [lastPrinted], [created], [lastSaved], [pages], [words], [characters], [charactersWithSpaces], [bytes], [lines], [paragraphs], [cdp_wordDocument], [customDocumentProperties], [customDocumentProperty_cdpe], [name] 4, [smartTagType_ste], [namespaceuri], [url], [st_wordDocument], [smartTagTypes], [val] 8, [bt_page], [bt_column], [bt_text_wrapping], [ftn_normal], [ftn_separator], [ftn_continuation_separator], [ftn_continuation_notice], [oot_on], [oot_off], [fctp_begin], [fctp_separate], [fctp_end], [ht_default], [ht_fareast], [ht_cs], [skv_paragraph], [skv_character], [skv_table], [skv_list], [color] 2, [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], [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], [vart_baseline], [vart_superscript], [vart_subscript], [jv_left], [jv_center], [jv_right], [jv_both], [wd_smartTags], [wd_docProperties], [wd_customDocProperties], [ignoreSubtree], [ignoreElements], [fonts] 2, [lists], [styles] 2, [docPr], [body], [dpe_wordDocument], [be_wordDocument], [blockLevelElts], [sectPr], [pPr], [pContentElts], [ppe_pElt], [ppe_styleElt], [pStyle], [keepNext], [keepLines], [pageBreakBefore], [supressLineNumbers], [suppressAutoHyphens], [contextualSpacing], [bidi] 2, [justification], [rPr], [rContentElts], [rpe_rElt], [rpe_styleElt], [rStyle], [rFonts], [bold], [bold_cs], [italic], [italic_cs], [capitals], [smallCapitals], [strike], [doubleStrike], [outline], [shadow], [emboss], [imprint], [noProof], [vanish], [specVanish], [rtl], [cs] 2, [underline], [highlight], [verticalAlign], [language], [le_runPrElt], [type] 4, [rce_rElt] 19, [n_blockLevelElts] 2, [suppressRef] 2, [font] 2, [char] 2, [fldData] 2, [fldCharType] 2, [fldLock] 2, [tblPr], [tblGrid], [tblContent], [tpe_tblElt], [tpe_styleElt], [tge_tblElt], [tce_tblElt], [tr], [tce_runLevelElts], [re_tblContentElt], [tblPrEx], [trPr], [rowContent], [tpee_rowElt], [tpe_rowElt], [trpe_styleElt], [rce_rowElt], [tc], [rce_runLevelElts], [tce_rowContentElt], [tcPr], [tce_content], [tcpe_tableCellElt], [tcpe_styleElt], [fle_wordDocument], [defaultFonts], [fse_fontsListElt], [fse_runPrElt], [hint], [ascii], [h_ansi], [fareast], [fe_fontsListElt], [altName], [se_wordDocument], [versionOfBuiltInStylenames], [se_stylesElt], [styleId], [default], [aliases], [sti], [basedOn], [next], [link], [autoRedefine], [hidden], [semiHidden], [locked], [personal], [personalCompose], [personalReply], [rsid], [se_pPr], [se_rPr], [se_tblPr], [se_trPr], [se_tcPr], [le_wordDocument], [spe_bodyElt], [rle_tblContentElt], [rle_rowContentElt], [ble_bodyElt], [ble_note], [ble_tableCellElt], [pce_pElt] 3.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]::CustomDocumentPropertyCustomDocumentProperty ::= [customDocumentProperty_cdpe]::CustomDocumentPropertiesCollection [name]::String [value]::ValueType
SmartTagType ::= [smartTagType_ste]::SmartTagsCollection [namespaceuri]::String [name]::String [url]::String
SmartTagsCollection ::=
[st_wordDocument]::WordDocument [smartTagTypes]::SmartTagTypeStringProperty ::= [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]::SectPrEltBlockLevelElt ::= BlockLevelChunkElt
BlockLevelElt ::= CfChunk
BlockLevelChunkElt ::= ParaElt
BlockLevelChunkElt ::= TableElt
BlockLevelChunkElt ::= RunLevelElt
ParaElt ::=
[pPr]::ParaPrElt [pContentElts]::ParaContentEltParaPrElt ::= [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]::RunContentEltRunPrElt ::= [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]::OnOffTypeEndnote ::=
[rce_rElt]::RunElt [n_blockLevelElts]::BlockLevelElt [type]::NoteValue [suppressRef]::OnOffTypeNoteElt ::= 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]::TableContentEltTablePrElt ::= [tpe_tblElt]::TableElt [tpe_styleElt]::StyleElt
TableGridElt ::= [tge_tblElt]::TableElt
TableContentElt ::=
[tce_tblElt]::TableElt [tr]::RowElt [tce_runLevelElts]::RunLevelEltRowElt ::=
[re_tblContentElt]::TableContentElt [tblPrEx]::TablePrExElt [trPr]::TableRowPrElt [rowContent]::RowContentEltTablePrExElt ::= [tpee_rowElt]::RowElt
TableRowPrElt ::= [tpe_rowElt]::RowElt [trpe_styleElt]::StyleElt
RowContentElt ::=
[rce_rowElt]::RowElt [tc]::TableCellElt [rce_runLevelElts]::RunLevelEltTableCellElt ::=
[tce_rowContentElt]::RowContentElt [tcPr]::TableCellPrElt [tce_content]::BlockLevelEltTableCellPrElt ::= [tcpe_tableCellElt]::TableCellElt [tcpe_styleElt]::StyleElt
FontsListElt ::=
[fle_wordDocument]::WordDocument [defaultFonts]::FontsElt [fonts]::FontEltFontsElt ::= [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]::StyleEltStyleElt ::= [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"