Profiles

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}*).*";
}

(1)

The first line must start with the keyword transformation followed by the identifier for the transformation engine. The statement is finished with a semicolon.

(2)

The input section can be used to define a fixed input file, but is normally left empty.