From Fedora Project Wiki

Description

docbook-dtds is a package that contains Document Type Definitions (DTDs) for verifying the syntax of DocBook documents. This test case ensures that the docbook-dtds package is working as expected. It is designed to verify that DocBook DTDs can be used to validate DocBook documents successfully.

Setup

  1. Install the version of Fedora that is to be tested on a bare metal or virtual system.
  2. Install the docbook-dtds package using the command: sudo dnf install docbook-dtds.

How to test

  1. Create or obtain a sample DocBook XML document.
  2. Validate the DocBook XML document using an XML validator and a DTD from the docbook-dtds package. For example: xmllint --noout --dtdvalid /usr/share/sgml/docbook/xml-dtd-4.5/docbook.dtd sample-doc.xml.

Expected Results

  1. The docbook-dtds package installs without error.
  2. The DTD files are correctly installed in the expected directory (e.g., /usr/share/sgml/docbook/).
  3. The XML validator successfully validates the DocBook XML document using the DTD, without reporting any errors for a well-formed document.

Optional

  1. Test various versions of DocBook DTDs with different DocBook XML documents.
  2. Test invalid DocBook XML documents and ensure that the validator reports errors.