Skip to content

Commit

Permalink
BIPM structuredidentifier: metanorma/metanorma-bipm#5
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Sep 25, 2020
1 parent 1f4dedb commit 7a8e650
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
8 changes: 7 additions & 1 deletion grammars/bipm.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@ editorialgroup = element editorialgroup {
}

BibDataExtensionType =
doctype?, editorialgroup, comment-period-from?, comment-period-to?
doctype?, editorialgroup, comment-period-from?, comment-period-to?, structuredidentifier
}

comment-period-from = element comment-period-from { ISO8601Date }
comment-period-to = element comment-period-to { ISO8601Date }

structuredidentifier = element structuredidentifier {
element docnumber { text },
element part { text }?,
element appendix { text }?
}

committee = element committee {
"CGPM" |
"CIPM" |
Expand Down
18 changes: 18 additions & 0 deletions grammars/bipm.rng
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<optional>
<ref name="comment-period-to"/>
</optional>
<ref name="structuredidentifier"/>
</define>
</include>
<define name="comment-period-from">
Expand All @@ -57,6 +58,23 @@
<ref name="ISO8601Date"/>
</element>
</define>
<define name="structuredidentifier">
<element name="structuredidentifier">
<element name="docnumber">
<text/>
</element>
<optional>
<element name="part">
<text/>
</element>
</optional>
<optional>
<element name="appendix">
<text/>
</element>
</optional>
</element>
</define>
<define name="committee">
<element name="committee">
<choice>
Expand Down

0 comments on commit 7a8e650

Please sign in to comment.