822
822
result = (xmlDocPtr) PyxmlNode_Get(pyobj_result);
823
823
style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
826
826
/* FIXME: We should probably add more restrictive error checking
827
827
* and raise an error instead of "just" returning NULL.
828
828
* FIXME: Documentation and code for xsltSaveResultToString diff
831
831
emitted = xsltSaveResultToString(&buffer, &size, result, style);
834
834
/* We haven't tested the aberrant case of a transformation that
835
835
* renders to an empty string. For now we try to play it safe.