Transformation parameters can be stored in profile files. The following example is a profile file for the export of a well known text processor.
transformation html2docbook;
input {
}
output {
}
section HTML {
source-encoding = "windows-1252";
exclude = [ "//p[starts-with(@class, 'MsoToc')]" ];
}
section DocBook {
destination-encoding = "UTF-8";
section-numbering-pattern = "(((\d\.)+)?\d?\.?\p{Z}*).*";
}
The first line must start with the keyword
transformation followed by the identifier for the
transformation engine. The statement is finished with a
semicolon.
The input section can be used to define a fixed input file, but is normally left empty.