The previous steps worked, this part is where I'm stuck. I haven't really started thinking in C.
Well it's basically about this function (copied and pasted from
http://xmlsoft.org/XSLT/html/libxslt-xsltutils.html#xsltSaveResultTo ), frankly I have no idea how to implement this:
Function: xsltSaveResultTo
int xsltSaveResultTo (xmlOutputBufferPtr buf,
xmlDocPtr result,
xsltStylesheetPtr style)
Save the result @result obtained by applying the @style stylesheet to an I/O output channel @buf
buf: an output buffer
result: the result xmlDocPtr
style: the stylesheet
Returns: the number of byte written or -1 in case of failure.
Günther