laws-africa / cobalt

A lightweight python library for working with Akoma Ntoso documents.

Home Page:https://cobalt.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

As a developer I want to import documents in the most recent version of AKN

Gauntlet173 opened this issue · comments

I don't believe that is an official namespace. That's the namespace from the working draft specification in 2016. According to http://docs.oasis-open.org/legaldocml/akn-core/v1.0/akn-core-v1.0-part1-vocabulary.html from 2018, the official namespace is http://docs.oasis-open.org/legaldocml/ns/akn/3.0

If you really need support for this namespace, you can add it to the list of namespaces that cobalt uses when parsing:

from cobalt.akn import AKN_NAMESPACES
AKN_NAMESPACES['WD17'] = 'http://docs.oasis-open.org/legaldocml/ns/akn/3.0/WD17'

Sounds good. Any idea why it's the namespace used in some of the official examples?

Probably because those examples were developed while the standard was still a draft, and they haven't gone back to clean them up.