Skip to content

Commit

Permalink
allow note at start of IEEE sections
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Oct 25, 2022
1 parent 7017fa8 commit 4d649e5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
12 changes: 11 additions & 1 deletion grammars/ieee.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@
# namespaces, one for isostandard and one for csand additions. And we do not want that.

include "relaton-ieee.rnc" { }
include "isodoc.rnc" { start = ieee-standard }
include "isodoc.rnc" {

start = ieee-standard

sections =
element sections {
note?,
( clause | terms | term-clause | definitions | floating-title )+
}

}

ieee-standard =
element ieee-standard {
Expand Down
16 changes: 16 additions & 0 deletions grammars/ieee.rng
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@
<start>
<ref name="ieee-standard"/>
</start>
<define name="sections">
<element name="sections">
<optional>
<ref name="note"/>
</optional>
<oneOrMore>
<choice>
<ref name="clause"/>
<ref name="terms"/>
<ref name="term-clause"/>
<ref name="definitions"/>
<ref name="floating-title"/>
</choice>
</oneOrMore>
</element>
</define>
</include>
<define name="ieee-standard">
<element name="ieee-standard">
Expand Down

0 comments on commit 4d649e5

Please sign in to comment.