- Dropped support for Python < 3.10 (no other changes)
- Parser now accepts both strings and bytes, and will encode strings to bytes using UTF-8
- Rename
DebateReport
toDebate
- Add new schemas.AkomaNtoso30 class with basic schema information
- Add support for portions, such as
~chp_2
- Remove non-standard support for expression component and subcomponent
- Remove non-standard legacy support for work components without
!
- Allow slashes in FRBR URI work component names
- Setting expression and manifestation dates updates attachments and other components
- Don't include Cobalt-specific
<references>
element in attachments - Cascade changes to FRBRlanguage into attachments
- Don't hardcode source
- Don't set
contains="originalVersion"
since it is the default value for that attribute. - Use
0001-01-01
as a placeholder date for publication, amendment and repeal events with null dates
- Change eIds of content produced by empty_document_content()
- Allow setting of missing component names
- Better error handling when parsing malformed XML.
(replaced by 4.0.2)
- Support AKN 3.0 namespaces
- Produce URIs with
akn
prefix by default (backwards compatibility maintained) - Support all Akoma Ntoso document types
- Start FRBR URI work component with
!
(eg.!main
) - FRBRcountry uses full country code from the FRBR URI
- FRBRnumber uses number portion from FRBR URI
- FRBRdate for FRBRWork contains the date portion of the FRBR URI
- Include AKN 3.0 schema and support for validating against the schema
- The elements returned by
components()
are nowattachment
orcomponent
elements, not the innerdoc
- FIX issue where a four-digit number in an FRBR URI confuses the parser
- Replace arrow with iso8601, avoiding arrow issue 612
- Python 3.6 and 3.7 support
- Drop support for Python 2.x
- FIX don't mistake numbers in uris with subtypes and numeric numbers as actors
- FIX link to GitHub
- Unicode literals when parsing FRBR URIs
- FIX don't strip empty whitespace during objectify.fromstring
- FIX don't pretty-print XML, it introduces meaningful whitespace
- FIX FrbrUri clone bug when a URI had a language.
- Move table of contents, render and other locale (legal tradition) specific functionality out of Cobalt.
- FIX bug that returned the incorrect language when extracting a document's expression URI.
- Inject original img src as data-src
- Support for i18n in XSLT files, including all 11 South African languages from myconstitution.co.za
- Support for images
- Change how XSLT params are passed to the renderer
- Add expression_frbr_uri method to Act class
- When rendering HTML, ensure primary container elements and schedules have appropriate ids
- When rendering HTML, scope component/schedule ids to ensure they're unique
- Render ref elements as HTML a elements
- Optionally prepend a resolver URL before a elements
- Convert EOL elements to BR when changing XML to HTML
- Support dates before 1900. Contributed by rkunal.
- lifecycle and identification meta elements now have a configurable source attribute
- TOCElement items now include a best-effort title
- Use HTML5 semantic elements section and article when generating HTML for acts
- FIX use schedule FRBRalias as heading
- Transforming XML to HTML now includes all attributes as data- attributes
- Refactor TOC helpers into own file
- Fix .format in FrbrUri
- first release