libxslt includes a family of functions to use in
saving the resulting output. For this example,
xsltSaveResultToFile is used, and the results are
saved to stdout:
xsltSaveResultToFile(stdout, res, cur);
libxml also contains output
functions, such as xmlSaveFile, which can be
used here. However, output-related information contained in the
stylesheet, such as a declaration of the encoding to be used, will
be lost if one of the libxslt save
functions is not used.
