Skip to content

Commit

Permalink
Plateau: sources on paragraphs and lists: metanorma/metanorma-plateau#51
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Jul 14, 2024
1 parent 1bb1160 commit 243c8f2
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 3 deletions.
12 changes: 12 additions & 0 deletions grammars/plateau.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ include "jis.rnc" {

start = plateau-standard

ParagraphFnBody =
( TextElement | fn )*, note*, source*

UlBody =
li+, note*, source*

OlBody =
li+, note*, source*

DlBody =
(dt, dd)+, note*, source*

}

# end overrides
Expand Down
48 changes: 48 additions & 0 deletions grammars/plateau.rng
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,54 @@
<start>
<ref name="plateau-standard"/>
</start>
<define name="ParagraphFnBody">
<zeroOrMore>
<choice>
<ref name="TextElement"/>
<ref name="fn"/>
</choice>
</zeroOrMore>
<zeroOrMore>
<ref name="note"/>
</zeroOrMore>
<zeroOrMore>
<ref name="source"/>
</zeroOrMore>
</define>
<define name="UlBody">
<oneOrMore>
<ref name="li"/>
</oneOrMore>
<zeroOrMore>
<ref name="note"/>
</zeroOrMore>
<zeroOrMore>
<ref name="source"/>
</zeroOrMore>
</define>
<define name="OlBody">
<oneOrMore>
<ref name="li"/>
</oneOrMore>
<zeroOrMore>
<ref name="note"/>
</zeroOrMore>
<zeroOrMore>
<ref name="source"/>
</zeroOrMore>
</define>
<define name="DlBody">
<oneOrMore>
<ref name="dt"/>
<ref name="dd"/>
</oneOrMore>
<zeroOrMore>
<ref name="note"/>
</zeroOrMore>
<zeroOrMore>
<ref name="source"/>
</zeroOrMore>
</define>
</include>
<!-- end overrides -->
<!--
Expand Down
2 changes: 1 addition & 1 deletion grammars/relaton-model-3gpp
2 changes: 1 addition & 1 deletion grammars/relaton-model-bsi
2 changes: 1 addition & 1 deletion grammars/relaton-model-plateau

0 comments on commit 243c8f2

Please sign in to comment.