filters
xsltproc.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
|