From Fedora Project Wiki
(Created page with "{{QA/Test_Case |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`. |actions= # Create or obtain a sample DocBook XML docum...") |
No edit summary |
||
Line 2: | Line 2: | ||
|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. | |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= | |setup= | ||
# Install the version of Fedora that is to be tested on a bare metal or virtual system. | |||
# Install the `docbook-style-xsl` package using the command: `sudo dnf install docbook-style-xsl`. | |||
|actions= | |actions= | ||
# Create or obtain a sample DocBook XML document. | # Create or obtain a sample DocBook XML document. |
Latest revision as of 02:56, 18 August 2023
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
- Install the version of Fedora that is to be tested on a bare metal or virtual system.
- 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
).