Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: transform/xldf/v12/extracted
Source used for this grammar: Vadim Zaytsev, Ralf Lämmel, Software Language Processing Suite, XLDF, shared/xsd/xldf.xsd
, 2011 [Explore]
sequence
, transformation
, transform-document
, transform-grammar
, insert
, remove-section
, add-section
, add-subsection
, add-figure
, place
, combine
, drop
, rename
, append
, import-grammar
, import-sample
), 15 root (sequence
, transform-document
, transform-grammar
, insert
, remove-section
, add-section
, add-subsection
, add-figure
, place
, combine
, drop
, rename
, append
, import-grammar
, import-sample
), 0 top (—), 9 bottom (SimpleText
2, informative
, normative
, SimpleTextElement
2, SimpleFigure
, StructuredSection
, front-simple-section
, front-list
, LexicalSection
).[file]
3, [target]
3, [id]
4, [before]
, [after]
, [to]
4, [content]
2, [from]
2, [core]
, [figure]
, [section]
3, [inside]
, [with]
, [title]
, [where]
, [prettyprinter]
.sequence ::=
transformation
transformation ::= insert import-grammar import-sample drop place combine rename append remove-section add-figure add-section add-subsection transform-grammar transform-document
transform-document ::= [file]::string
transform-grammar ::=
[target]::string transformation
insert ::=[before]:: [id]::string SimpleTextElement [after]:: [id]::string SimpleTextElement [to]::string [content]::SimpleText
remove-section ::=
[id]::string [from]::string
add-section ::= front-list LexicalSection [core]::StructuredSection
add-subsection ::= front-simple-sectionnormative informative [to]::string
add-figure ::= [figure]::SimpleFigure [to]::string
place ::= [section]::string [inside]::string
combine ::= [section]::string [with]::string
drop ::= [section]::string
rename ::= [from]::[id]::string [title]::string [to]::string
append ::= [where]::string [content]::SimpleText
import-grammar ::= [target]::string [file]::string
import-sample ::=
[target]::string [file]::string [prettyprinter]::string