Closed thomas-fossati closed 3 years ago
Breaking out CDDL should be automated - I absolute agree. There are mechanisms in place for younger I-Ds. I admit that I was too lazy to backport them here. And this is the consequence :-)
Please use {::include foo.cddl} and make sure these CDDL files build/validate (write a Makefile).
We currently use:
~~~ CDDL
<CODE BEGINS>
{::include concise-swid-tag.cddl}
<CODE ENDS>
~~~
But not for the exepositional CDDL fragments that are used to improve readability throughout the text. Using regexp here to extract fragments from the full CDDL usually helps. We did not do this here. The fragments used as examples are not intended to build/validate by their own.
Should be consistent now
The XPath expression //sourcecode[@type='cddl']/text()
can be used on the XML form of this specification to extract the CDDL defined here.
You could make sure that this validates.
Oh, can you please commit the referenced cddl files?
done. check-cddl.sh can now be found in the repo
In section 2.5
global-attributes
is defined asInstead, it should be:
This kind of copy&paste error could be avoided by having one true CDDL source; an example here.