diff --git a/README.rst b/README.rst index 15f66ab..247af97 100644 --- a/README.rst +++ b/README.rst @@ -82,6 +82,11 @@ Cobalt is Copyright 2015-2020 AfricanLII. Change Log ---------- +6.1.0 +----- + +- Add new schemas.AkomaNtoso30 class with basic schema information + 6.0.0 ----- diff --git a/VERSION b/VERSION index 09b254e..dfda3e0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.0.0 +6.1.0 diff --git a/cobalt/schemas.py b/cobalt/schemas.py index 23ec1c2..1f7975e 100644 --- a/cobalt/schemas.py +++ b/cobalt/schemas.py @@ -58,3 +58,15 @@ def assert_validates(akn_doc, strict=False): """ schema = get_schema(akn_doc.namespace, strict) schema.assertValid(akn_doc.root) + + +class AkomaNtoso30: + """ Information on various elements of the Akoma Ntoso 3.0 schema. + """ + + hier_elements = [ + 'alinea', 'article', 'book', 'chapter', 'clause', 'division', 'indent', 'level', 'list', 'paragraph', 'part', + 'point', 'proviso', 'rule', 'section', 'subchapter', 'subclause', 'subdivision', 'sublist', 'subparagraph', + 'subpart', 'subrule', 'subsection', 'subtitle', 'title', 'tome', 'transitional' + ] + """ Hierarchical elements """