Skip to content

Commit

Permalink
bibdata/ext/flavor: metanorma/metanorma#416
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Oct 9, 2024
1 parent de2246f commit aeca0eb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions grammars/biblio-standoc.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ BibDataExtensionType =
## Subclass of the standardisation document, that is treated or processed differently
## from other documents in the same doctype
docsubtype?,
## Flavour of Metanorma used to process this document
flavour,
## Groups associated with the production of the standards document, typically within
## a standards definition organization
editorialgroup?,
Expand All @@ -59,6 +61,12 @@ docsubtype = element subdoctype { DocumentSubtype }

DocumentSubtype = text

flavour = element flavour { MetanormaFlavor }

## This is in fact an enum, as of this writing: standoc iso generic ietf ieee itu nist ogc csa cc iho ribose jis iec bsi bipm plateau.
## However we prefer not to hardcode it, given ongoing extension.
MetanormaFlavor = text

## A group associated with the production of the standards document, typically within
## a standards definition organization
editorialgroup = element editorialgroup {
Expand Down
13 changes: 13 additions & 0 deletions grammars/biblio-standoc.rng
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ standards defining organization, and that is rendered in a distinct manner</a:do
from other documents in the same doctype</a:documentation>
</ref>
</optional>
<ref name="flavour">
<a:documentation>Flavour of Metanorma used to process this document</a:documentation>
</ref>
<optional>
<ref name="editorialgroup">
<a:documentation>Groups associated with the production of the standards document, typically within
Expand Down Expand Up @@ -113,6 +116,16 @@ a standards definition organization</a:documentation>
<define name="DocumentSubtype">
<text/>
</define>
<define name="flavour">
<element name="flavour">
<ref name="MetanormaFlavor"/>
</element>
</define>
<define name="MetanormaFlavor">
<a:documentation>This is in fact an enum, as of this writing: standoc iso generic ietf ieee itu nist ogc csa cc iho ribose jis iec bsi bipm plateau.
However we prefer not to hardcode it, given ongoing extension.</a:documentation>
<text/>
</define>
<define name="editorialgroup">
<a:documentation>A group associated with the production of the standards document, typically within
a standards definition organization</a:documentation>
Expand Down

0 comments on commit aeca0eb

Please sign in to comment.