diff --git a/README.md b/README.md index bf269d0..715de94 100644 --- a/README.md +++ b/README.md @@ -88,14 +88,12 @@ You can create your own grammar by creating a gem that provides these files and ### 10.0.0 (?) -* Support creating XML with AKN 3 namespace (http://docs.oasis-open.org/legaldocml/ns/akn/3.0) -* Add --namespace option to toggle between generate AKN2 and AKN3 documents -* Remove unnecessary schemaLocation header in root element -* BREAKING: default to AKN3 namespace +* BREAKING: Create XML with AKN 3 namespace (http://docs.oasis-open.org/legaldocml/ns/akn/3.0), AKN2 is no longer supported * BREAKING: replace id attributes with eId attributes * BREAKING: serialize schedules as attachments to act, not as components as peers of the act * BREAKING: anonymous blocks are serialized as hcontainers, not paragraphs * BREAKING: crossheading hcontainer IDs correctly use hcontainer +* Remove unnecessary schemaLocation header in root element ### 9.2.0 (10 June 2020) diff --git a/bin/slaw b/bin/slaw index b4facde..5dec252 100755 --- a/bin/slaw +++ b/bin/slaw @@ -19,7 +19,7 @@ class SlawCLI < Thor option :section_number_position, enum: ['before-title', 'after-title', 'guess'], desc: "Where do section titles come in relation to the section number? Default: before-title" option :grammar, type: :string, desc: "Grammar name (usually a two-letter country code). Default is za." option :ascii, type: :boolean, default: false, desc: "Process text as ASCII using %-encoding. This can provide significant speed improvements if the grammar uses only ASCII literals. See https://github.com/cjheath/treetop/issues/31." - option :namespace, enum: ['akn2', 'akn3'], default: 'akn3', desc: 'AKN XML namespace to use.' + option :namespace, enum: ['akn3'], default: 'akn3', desc: 'AKN XML namespace to use.' def parse(name) logging @@ -35,8 +35,6 @@ class SlawCLI < Thor end case options[:namespace] - when 'akn2' - Slaw.akn_namespace = Slaw::AKN2_NS when 'akn3' Slaw.akn_namespace = Slaw::AKN3_NS end diff --git a/lib/slaw/namespace.rb b/lib/slaw/namespace.rb index 5550a8a..a3c022e 100644 --- a/lib/slaw/namespace.rb +++ b/lib/slaw/namespace.rb @@ -1,5 +1,4 @@ module Slaw - AKN2_NS = 'http://www.akomantoso.org/2.0' AKN3_NS = 'http://docs.oasis-open.org/legaldocml/ns/akn/3.0' @@ns = AKN3_NS