// From now on no Gdome internal should be used directly.
+ /******************************/
+ /* XSLT stylesheet Processing */
+ /******************************/
+
xsltStylesheetPtr processStylesheet(GdomeDocument* style)
{
xmlDocPtr style_copy;
return xsltParseStylesheetDoc(style_copy);
}
-GdomeDocument* applyStylesheet(GdomeDocument* source, xsltStylesheetPtr style_libxslt, const char** params)
+ /*******************************/
+ /* XSLT stylesheet Application */
+ /*******************************/
+
+GdomeDocument* applyStylesheet(GdomeDocument* source, xsltStylesheetPtr
+ style_libxslt, const char** params)
{
xmlDocPtr source_libxml;
xmlDocPtr output_libxml;
xsltSetGenericDebugFunc(NULL, NULL);
- output_libxml = xsltApplyStylesheet(style_libxslt,
- source_libxml,
- params);
+ output_libxml = xsltApplyStylesheet(style_libxslt, source_libxml,
+ params);
if (output_libxml == NULL) return NULL;
return gdome_of_libxml(output_libxml);
}
-/***************** serialization functions *****************/
+ /******************/
+ /* Results Output */
+ /******************/
-int saveResultToFilename (const char* name,
- GdomeDocument* result,
- xsltStylesheetPtr style_libxslt,
- int compression)
+int saveResultToFilename (const char* name, GdomeDocument* result,
+ xsltStylesheetPtr style_libxslt, int compression)
{
xmlDocPtr result_libxml;
xsltSetGenericDebugFunc(NULL, NULL);
- return xsltSaveResultToFilename(name,
- result_libxml,
- style_libxslt,
- compression);
+ return xsltSaveResultToFilename(name, result_libxml,
+ style_libxslt, compression);
}
-int saveResultToFile (FILE* file,
- GdomeDocument* result,
- xsltStylesheetPtr style_libxslt)
+int saveResultToFile (FILE* file, GdomeDocument* result,
+ xsltStylesheetPtr style_libxslt)
{
xmlDocPtr result_libxml;
xsltSetGenericDebugFunc(NULL, NULL);
- return xsltSaveResultToFile(file,
- result_libxml,
- style_libxslt);
+ return xsltSaveResultToFile(file, result_libxml, style_libxslt);
}
-int saveResultToFd (int fd,
- GdomeDocument* result,
- xsltStylesheetPtr style_libxslt)
+int saveResultToFd (int fd, GdomeDocument* result, xsltStylesheetPtr
+ style_libxslt)
{
xmlDocPtr result_libxml;
xsltSetGenericDebugFunc(NULL, NULL);
- return xsltSaveResultToFd(fd,
- result_libxml,
- style_libxslt);
+ return xsltSaveResultToFd(fd, result_libxml, style_libxslt);
}