Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Feb 19, 2023
1 parent e694b98 commit bf5189c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion grammars/bsi.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ bsi-standard =
element bsi-standard {
attribute version { text },
attribute type { "semantic" | "presentation" },
bibdata, termdocsource*, misccontainer?, boilerplate?, preface, sections+, annex*, bibliography, indexsect*
bibdata, termdocsource*, misccontainer?, boilerplate?, preface, sections+, annex*, bibliography, indexsect*, colophon?
}

3 changes: 3 additions & 0 deletions grammars/bsi.rng
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@
<zeroOrMore>
<ref name="indexsect"/>
</zeroOrMore>
<optional>
<ref name="colophon"/>
</optional>
</element>
</define>
</grammar>
5 changes: 4 additions & 1 deletion grammars/isodoc.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -468,14 +468,17 @@ standard-document =
element standard-document {
attribute version { text },
attribute type { "semantic" | "presentation" },
bibdata, misccontainer?, boilerplate?, preface?, sections, annex*, bibliography?, indexsect*
bibdata, misccontainer?, boilerplate?, preface?, sections, annex*, bibliography?, indexsect*, colophon?
}

misccontainer = element metanorma-extension { AnyElement+ }

preface =
element preface { ( content | abstract | foreword | introduction | acknowledgements)+ }

colophon =
element colophon { content+ }

foreword =
element foreword { Content-Section }

Expand Down
10 changes: 10 additions & 0 deletions grammars/isodoc.rng
Original file line number Diff line number Diff line change
Expand Up @@ -1578,6 +1578,9 @@
<zeroOrMore>
<ref name="indexsect"/>
</zeroOrMore>
<optional>
<ref name="colophon"/>
</optional>
</element>
</define>
<define name="misccontainer">
Expand All @@ -1600,6 +1603,13 @@
</oneOrMore>
</element>
</define>
<define name="colophon">
<element name="colophon">
<oneOrMore>
<ref name="content"/>
</oneOrMore>
</element>
</define>
<define name="foreword">
<element name="foreword">
<ref name="Content-Section"/>
Expand Down
2 changes: 1 addition & 1 deletion grammars/relaton-models

0 comments on commit bf5189c

Please sign in to comment.