]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/gdome_xslt/C/gdome_xslt/gdome_xslt.h
- added saveResultTo{Filename,File,Fd}
[helm.git] / helm / DEVEL / gdome_xslt / C / gdome_xslt / gdome_xslt.h
1
2 /* This file implements a XSLT engine working on Gdome documents. In fact,
3  * it just maps Gdome documents to libxml documents back and forth, and
4  * applyes the transformation on libxml documents using libxlt.
5  * 
6  * The code is largely based on the code of T.J. Mather's XML::GDOME::XSLT
7  * Perl module (http://kobesearch.cpan.org/search?dist=XML-GDOME-XSLT)
8  *
9  * Copyright (C) 2002:
10  *      Claudio Sacerdoti Coen          <sacerdot@cs.unibo.it>
11  *      Stefano Zacchiroli              <zack@cs.unibo.it>
12  * 
13  * This library is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU Lesser General Public
15  * License as published by the Free Software Foundation; either
16  * version 2.1 of the License, or (at your option) any later version.
17  * 
18  * This library is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21  * Lesser General Public License for more details.
22  * 
23  * You should have received a copy of the GNU Lesser General Public
24  * License along with this library; if not, write to the Free Software
25  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26  *
27  * For more information, please send an email to {sacerdot,zack}@cs.unibo.it
28  */
29
30
31 xsltStylesheetPtr       processStylesheet       (GdomeDocument* style);
32
33 GdomeDocument*          applyStylesheet         (GdomeDocument* source,
34                                                  xsltStylesheetPtr style_libxslt,
35                                                  const char** params);
36
37 int                     saveResultToFilename    (const char* name,
38                                                  GdomeDocument* result,
39                                                  xsltStylesheetPtr style_libxslt,
40                                                  int compression);
41 int                     saveResultToFile        (FILE* file,
42                                                  GdomeDocument* result,
43                                                  xsltStylesheetPtr style_libxslt);
44 int                     saveResultToFd          (int fd,
45                                                  GdomeDocument* result,
46                                                  xsltStylesheetPtr style_libxslt);
47