filters

xsltproc.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2000 Robert JACOLIN <rjacolin@ifrance.com>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef __XSLTPROC_H__
00021 #define __XSLTPROC_H__
00022 
00023 #include <qstring.h>
00024 
00025 #include <libexslt/exslt.h>
00026 #include <libxslt/xsltconfig.h>
00027 #include <libxslt/xslt.h>
00028 #include <libxslt/xsltInternals.h>
00029 #include <libxslt/transform.h>
00030 #include <libxslt/xsltutils.h>
00031 #include <libxslt/extensions.h>
00032 
00033 #define NB_PARAMETER_MAX 16
00034 
00035 class XSLTProc
00036 {
00037     QCString    _fileIn;
00038     QCString    _fileOut;
00039     QCString    _stylesheet;
00040 
00041     const char *params[NB_PARAMETER_MAX + 1];
00042     int nbparams;
00043     int debug;
00044     int repeat;
00045     int novalid;
00046     const char *output;
00047 
00048     public:
00055         XSLTProc(const char* fileIn, const char* fileOut, const char *stylesheet);
00056         
00057         XSLTProc(QString fileIn, QString fileOut, QString stylesheet);
00058 
00062         virtual ~XSLTProc() {}
00063 
00064         void addParam(QString name, QString value);
00065 
00069         int parse();
00070 
00071     private:
00072         void xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur,
00073                     const char *filename);
00074 };
00075 #endif /* __XSLTPROC_H__ */
KDE Home | KDE Accessibility Home | Description of Access Keys