The trWSite.xsl
file is at the core of the trgensit
package. Its
content determines largely how the structure of the target web page
will look.
trWSite.xsl
is an XML style sheet file conforming to the XSLT 1.0
specification. It is the main input file to an XSLT 1.0
transformation. The purpose of the XSLT transformation is to generate the
final index.htm
HTML file.
The XSLT transformation typically performs the following functions:
index.htm
file from the
body element of the body.htm
file
Formally the XSLT transformation is applied to a trWNav.xml
file,
steered by the trWSite.xsl
file. The file body.htm
is also
processed during the transformation.
In other words, the XSLT transformation has three input files:
trWSite.xsl
trWNav.xml
body.htm
and one output file
index.htm
Like all XML files, trWSite.xsl
can be written with any text editor.
However an XML-aware editor will greatly ease editing. I use GNU Emacs
with nXML mode
to get syntax highlighting and XML validity checking.