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
- Install the version of Fedora that is to be tested on a bare metal or virtual system.
- Install the
docbook-dtds
package using the command:sudo dnf install docbook-dtds
.
How to test
- Create or obtain a sample DocBook XML document.
- 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
- The
docbook-dtds
package installs without error. - The DTD files are correctly installed in the expected directory (e.g.,
/usr/share/sgml/docbook/
). - The XML validator successfully validates the DocBook XML document using the DTD, without reporting any errors for a well-formed document.
Optional
- Test various versions of DocBook DTDs with different DocBook XML documents.
- Test invalid DocBook XML documents and ensure that the validator reports errors.