DTD OASIS DocBook TC · 4.5

DocBook 4.5

DocBook 4.5 XML DTD

DocBook documents written before version 5: no namespace, DTD instead of RelaxNG.

About

Many manuals and Linux documentation sets are still DocBook 4.x. Version 4.5 is the last DTD release; DocBook 5 moved to a namespace and RelaxNG.

The DTD is modular; its modules and the ISO entity sets are included here.

Good to know

  • Entities from the DTD ( , © and the other ISO sets) are only known when the DTD is read while parsing, which the browser cannot do for a DOCTYPE that points at docbook.org. Use character references or the five XML entities.
  • The example is by xmlvalid.com.

Files

27 files · 434.9 KB

The validator loads all of these with their folder structure, so includes and imports resolve as published.

Example document

article.xml · 792 B · valid against this schema

In CI and from code

The same schema by its name, docbook-4.5, through the API.

npx @xmlvalid/cli validate "**/*.xml" --schema docbook-4.5
- uses: xmlvalid/validate-action@v1
  with:
    files: "**/*.xml"
    schema: docbook-4.5
    api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
  -H "Authorization: Bearer $XMLVALID_API_KEY" \
  -F document={{ $schema->example ?? 'document.xml' }} -F schema=docbook-4.5

Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups