XSLTGen
An Automatic XSLT Stylesheet Generator
Brief Description
XSLTGen is an automatic XSLT generator. This system automatically generates an XSLT stylesheet, given a source XML document and a desired output HTML or XML document. The generated XSLT stylesheet contains rules needed to transform the input XML document to the HTML document. It can also be applied to other XML documents with similar structure as the input XML document.
The XSLTGen system consists of six main components: DOM Builder, Text Matching subsystem, Structure Matching subsystem, Sequence Checker, XSLT Stylesheet Constructor, and XSLT Stylesheet Refiner subsystem.
Input Requirements
XSLTGen requires its input XML and HTML documents to be well-formed.
Current Version
The current version of XSLTGen does not support the capability to automatically generate XSLT stylesheets with complex functions (e.g. conditional transformation, item numbering, sorting)
Source Codes
The source codes are divided into 2 zip files:
XSLTGen.zip contains the source code for the first five components of XSLTGen system, i.e. DOM Builder, Text Matching subsystem, Structure Matching subsystem, Sequence Checker, and XSLT Stylesheet Constructor.
Refine.zip contains the source code for the final step of XSLTGen system: XSLT Stylesheet Refiner subsystem.
How To Run
To generate the XSLT stylesheet for an input XML document and a desired output HTML document (first five steps of XSLTGen):
To generate the fixed XSLT stylesheet (final step of XSLTGen):
Examples
The following are the datasets used in XSLTGen paper:
Each of these example may contain files as follows:
The following is the dataset used to test the Refinement stage of XSLTGen:
This example contains files as follows: