Skip to content
Structured Content Regulatory Publishing Guides

Legislative Publishing Platforms: XML, Akoma Ntoso and Branching

Shakewell ·

A legislative publishing platform is software that stores laws, rules and regulations as structured XML instead of Word files, tracks every amendment, and publishes the result as PDF, HTML and data from one source. The XML is usually a legal schema such as Akoma Ntoso (OASIS LegalDocML) or, in the US, USLM.

This guide covers what these platforms do, which schemas exist, what has to be true of the workflow, and how to choose. It is written for legislative agencies, regulators and rule-makers, mainly in Australia.

Why law is a hard publishing problem

Most documents are written once and revised occasionally. Legislation is amended continuously, by several people, under rules about who may change what and when.

Four things make it different:

  • Many amendments in flight. One Act may be affected by several bills at once, each drafted by a different person.
  • Law has dates. A provision can be passed on one day, commence on another and be repealed later. You need the text as it stood on a given day.
  • Authority matters. The published version must be exactly the approved version, and you must be able to show it.
  • Readers want it everywhere. Print, PDF, web, screen readers and increasingly data feeds.

Word handles none of this well. Each drafter works in a copy, and someone reconciles the copies by hand.

What a legislative publishing platform does

The features worth looking for, in the order they matter:

  • Structured storage. Sections, subsections, definitions, headings and notes are separate, typed elements, not formatted text.
  • Versioning. Every change is recorded against the element it touches, with who made it and when.
  • Amendment handling. Amendments are drafted against a base text, and applied to produce a new version.
  • Consolidation. The platform assembles the text in force on a given date from the base text and its amendments.
  • Review and approval. Sign-off by role, with an audit trail.
  • Multi-format output. PDF, Word and HTML from one structured source.
  • Validation. Content is checked against the schema before approval, so structural errors are caught early.

Our post on structured authoring and CCMS explains the general model.

Which XML schema for legislation

The right schema depends on the kind of document.

Schema Maintained by Typical use
Akoma Ntoso (LegalDocML) OASIS Bills, acts, amendments, debates, judgments, gazettes
USLM US Legislative Branch XML Working Group (schema published by the GPO) US Code, bills, resolutions and amendments
DITA OASIS Topic-based technical documentation
S1000D ASD, AIA and A4A Defence and aviation technical publications
DocBook OASIS General technical publishing
JATS NISO Journal articles

For law, the two named standards are Akoma Ntoso and USLM.

Akoma Ntoso is an OASIS Standard (Version 1.0 was approved in 2018). Its vocabulary specification covers bills and acts, debates, judgments, amendment lists, official gazettes, amendments and portions of documents. It identifies each legal resource at three levels:

  • the work, “the abstract concept of the legal resource”;
  • the expression, “any version of the WORK whose content is specified and different from others”;
  • the manifestation, “any electronic or physical format of the EXPRESSION”.

That model fits law well. An Act is one work, each amended text is an expression, and the PDF, HTML and XML files are manifestations. The specification also names “point-in-time consolidation of legislation” as a service machine-readable markup makes possible, and requires a lifecycle element on documents that have versions.

USLM is the United States Legislative Markup. The US House’s XML site records that the Office of the Law Revision Counsel released the United States Code in XML on 30 July 2013, and the Government Publishing Office publishes the USLM schema on GitHub, where it says the US Legislative Branch XML Working Group manages it. If you publish US federal material, USLM is the format your readers and tools will expect.

You do not have to choose one of these. Some agencies run their own schema, and the right test is whether the schema fits your instruments, not whether it is famous. Quark says QPP accepts any XML schema, which is how a platform can serve a legislative drafter and a technical writer at the same time.

What the Australian Federal Register publishes

The Federal Register of Legislation is managed by the Office of Parliamentary Counsel under the Legislation Act 2003. It shows what a published-law outcome looks like:

  • Authorised versions “are always in Adobe Acrobat (PDF) format”.
  • Downloads are usually a PDF and a formatted text file (.doc, .docx or .rtf).
  • Point-in-time versions are held for Act, regulation and legislative instrument compilations, “from 2013”.

We could not find a statement on the Register’s help pages that it publishes XML, so we do not claim it does. The useful lesson is the output list: a PDF that carries authority, a Word copy for people who need to work with the text, and a point-in-time history.

How amendments and point-in-time versions work

Consolidation is the heart of any legislative platform. The sequence is:

  1. A base text is approved and published.
  2. An amendment is drafted against that base. In structured form it says “replace this subsection with this text”, pointing at an element, not at a page.
  3. The amendment has a commencement date, which may differ from the date it was made.
  4. On commencement, the platform applies it and produces a new expression.
  5. Earlier expressions stay retrievable, so a reader can ask what the law said last March.

Two things go wrong in practice:

  • Commencement is data, not a note. If the date lives in a footnote, nobody can query it. Store it as metadata on the amendment.
  • Amendments that touch amendments. A bill amends an Act that another bill is about to amend. The platform needs to know which base each one was drafted against.

Why branching matters

The second problem is the one Word cannot solve at all: parallel drafting. A department restructuring an Act while routine amendments continue is two lines of work on one text.

In software, this was solved long ago by branching. A drafter takes a branch from a point in time, works on it independently, and merges back, with the tool flagging any place where two people changed the same thing.

We built a custom extension to QPP NextGen for legislative agencies and legislative bodies that brings Git-style branching to document management. It branches and merges at document and component level, with automatic conflict detection. See regulatory and legislative publishing for where it fits.

Branching suits you if:

  • more than one person amends the same instrument at once;
  • a large restructure runs beside routine amendments;
  • you need to compare two versions of a draft side by side before choosing one.

It matters less if one drafter handles one bill at a time.

From one XML source to PDF, HTML and EPUB

Single-source publishing means the XML is the master and every format is generated from it. There is no separate “web version” to keep in step.

Output What it is for What to watch
PDF The authorised or print copy Page layout rules, tagged PDF for accessibility
HTML Reading and search on the web Stable links to sections, headings, tables
Word Drafters and recipients who edit Styles carried over cleanly
EPUB Reflowable reading on devices Tables and footnotes
XML or data feed Reuse by other systems Published schema and versioning

At the Australian Energy Market Commission, we implemented Quark Publishing Platform so legal and policy teams produce regulatory documents in the browser, with automatic PDF, DOCX and HTML output and no XML specialists needed.

Accessibility of published law

Law applies to everyone, so the published copy has to be usable with a screen reader. The standard to test against is WCAG 2.2, a W3C Recommendation with three conformance levels: A, AA and AAA.

Structure helps here. Headings, lists and tables that are real elements in the source become real headings, lists and tables in the HTML and tagged PDF. Formatted text that only looks like a heading cannot.

Test the output, not the schema: check heading order, table headers, link text and reading order on real pages.

How to choose a platform

Questions that separate the options:

  • Does it support the schema you need? Akoma Ntoso, USLM or your own.
  • Can it branch and merge? Ask to see two drafters amend one instrument.
  • Can it produce a point-in-time version? Ask for one for a past date.
  • Who authors? Drafters, lawyers and policy staff rarely want to edit XML.
  • What does it connect to? Your drafting, tabling, document and web systems.
  • How does it deliver? Public publishing, plus controlled delivery to internal readers.
  • Where does it run? Cloud or your own environment.

Products in this area include CCMS platforms and dedicated legislative tools. One we implement is Quark Publishing Platform: we are a Quark and QPP partner for Australia and the USA, and we resell, implement and support it. Test any shortlist on your own instruments, including an awkward one with many amendments.

The order to do things in

  1. Collect real instruments. Pick an Act with a long amendment history.
  2. Model the content. Decide the elements, identifiers and metadata, including commencement.
  3. Choose the schema. Existing standard first; custom only if yours genuinely differs.
  4. Pilot with drafters. Their workflow decides adoption.
  5. Migrate the back catalogue. Convert after the model, not before.
  6. Add delivery. Public and internal publishing, with access control where needed.

For wider context, see the comparison of S1000D and DITA and our post on AI in structured content publishing. Where published documents must reach only the right readers, our Content Portal handles delivery.

Sources: Akoma Ntoso vocabulary, OASIS and OASIS LegalDocML TC, Legislative documents in XML, US House, USLM schema, GPO, About the Federal Register of Legislation and Linking and downloads, WCAG 2.2, W3C, all checked November 2026.

Common questions

What is Akoma Ntoso?

Akoma Ntoso, developed by the OASIS LegalDocML committee, is an OASIS Standard XML vocabulary for parliamentary, legislative and judicial documents. It covers bills and acts, amendments, debates, judgments and official gazettes, and it identifies each document as a work, an expression (a version) and a manifestation (a format).

What XML schemas are commonly used in technical publishing?

The common ones are DITA and DocBook (OASIS), S1000D (aerospace and defence), JATS (journal articles) and, for legislation, Akoma Ntoso and the US House's USLM. Many publishing platforms accept any XML schema, so the choice follows your documents: manuals suit DITA or S1000D, journals suit JATS, and bills, rules and regulations suit a legislative schema.

What is point-in-time legislation?

Point-in-time legislation is the text of a law as it stood on a given date, with every amendment up to that date applied. The Australian Federal Register of Legislation publishes these as compilations, each with a compilation number. Producing them by hand is slow, which is why legislative platforms store each amendment against the clause it changes and assemble the consolidated version from that record.

What is the difference between a legislative drafting tool and a publishing platform?

A drafting tool helps a drafter write and amend one instrument. A publishing platform also manages the content around it: version history, review and approval, branching, consolidation, and output to PDF, Word, HTML and data feeds. Some products do both. Which one you need depends on whether your problem is writing the text or getting approved text out accurately and on time.

Start a conversation

Start a conversation

Tell us what you want to build, fix or scale, we’ll come back with a clear way forward.