| | 1 | [[PageOutline]] |
| | 2 | = Testing XSL FO = |
| | 3 | |
| | 4 | The open source XSL formatters are the best sources for tools for testing formatted documents. The xmlroff XSL formatter (http://xmlroff.org/) has a framework for rasterising PDF or !PostScript output and comparing formatted pages against a reference, and the FOP XSL formatter (http://xmlgraphics.apache.org/fop/) has a framework for comparing the XML renditions of its area tree against a reference. |
| | 5 | |
| | 6 | A description of available test suites is at http://xmlroff.org/wiki/XSLTestSuites. |
| | 7 | |
| | 8 | == xmlroff Testing Module == |
| | 9 | |
| | 10 | This module serves multiple purposes for the xmlroff XSL formatter: |
| | 11 | * Comparing results between different versions of xmlroff |
| | 12 | * Comparing results between xmlroff’s different output formats |
| | 13 | * Comparing xmlroff output to files produced another way, e.g., from a different formatter – FO or otherwise |
| | 14 | |
| | 15 | See [wiki:TestingXSLFO/xmlroff xmlroff Testing Module] |
| | 16 | |
| | 17 | == FOP Layout Engine Tests == |
| | 18 | |
| | 19 | FOP’s layout engine tests are integrated with other JUnit tests that are run in the FOP build process. Each test includes a complete FO document, and assertions are made (and checked) about the FOP-specific area-tree that results from formatting the FO document with FOP. |
| | 20 | |
| | 21 | See [wiki:TestingXSLFO/FOP FOP Layout Engine Tests] |
| | 22 | |
| | 23 | == RenderX Validators == |
| | 24 | |
| | 25 | RenderX has multiple XSL-FO validators at |
| | 26 | http://www.renderx.com/tools/validators.html |