Closed opoudjis closed 1 year ago
@opoudjis and the isodoc.rnc
adds internal
, right?
https://github.com/metanorma/metanorma-model-iso/blob/609e15c1ff15fffa6dddd11639ef85fb6a4ee841/grammars/isodoc.rnc#L333
@opoudjis the ISO/IEC DIR 1
is created by hand and the type was changed by @ronaldtse from international-standard
to directives
in the last commit https://github.com/relaton/relaton-data-iso/commit/27c1caeb30045081936f22528facbfad311eece9
I just find out that the relaton doesn't war when type
is incorrect. I'll fix it.
@andrew2net @opoudjis we need to add a new type of "directives" or "policy-documents". "international-standard" does not apply to all documents, obviously.
@ronaldtse @andrew2net
Don't confuse bibdata/@type
and bibdata/ext/doctype
The latter can be international-standard or directive, and in fact that's already allowed in the grammar.
The former is SACROSANCT in only ever being "standard". Andrej, from what I understand, bibdata/@type
is being copied from bibdata/ext/doctype
erroneously, and you're going to fix that?
Andrej, from what I understand,
bibdata/@type
is being copied frombibdata/ext/doctype
erroneously, and you're going to fix that?
@opoudjis It's not a correct statement. Nothing is being copied. The file was created manually. I can rename current type: directives
to doctype: directives
and add type: international-standard
. @ronaldtse do you have objections?
@andrew2net a Directive is not a international-standard
, so it should not be there.
It can be considered a type: standard
, doctype: directive
in the Relaton sense, but in no way it is an international-standard
.
Cool, thank you!
relaton fetch "ISO/IEC DIR 1" is returning
<bibdata type="directives">
The type of bibdata/bibitem used to be cosmetic, but now it is critical. I am using
bibdata/@type
to work out how to render documents in Metanorma, and anybibdata/@type
which is not one of the defined types,is resulting in a crash. Please ensure that no type other than those is ever used in Relaton: the default should always be
standard
.This is blocking https://github.com/CalConnect/csd-standard-doc/issues/6