From Fedora Project Wiki
Description
This test case ensures that the docbook-style-xsl
package is working as expected. It is designed to verify that DocBook XSL stylesheets can be used to transform 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-style-xsl
package using the command: sudo dnf install docbook-style-xsl
.
How to test
- Create or obtain a sample DocBook XML document.
- Use an XSLT processor, such as
xsltproc
, to transform the DocBook XML document using a stylesheet from thedocbook-style-xsl
package. For example:xsltproc /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl sample-doc.xml
.
Expected Results
- The
docbook-style-xsl
package installs without error. - The XSL stylesheets are correctly installed in the expected directory (e.g.,
/usr/share/sgml/docbook/xsl-stylesheets/
). - The XSLT processor successfully transforms the DocBook XML document using the XSL stylesheet, without errors, and produces the expected output (e.g., HTML, PDF, RTF, etc.).
Optional
- Test various versions of DocBook XSL stylesheets with different DocBook XML documents.
- Test invalid DocBook XML documents and ensure that the XSLT processor reports errors.
- Compare the output with different processors (e.g.,
xsltproc
,saxon
).