umbrello/umbrello
Go to the documentation of this file.
13 #include <libxml/xmlmemory.h>
14 #include <libxml/debugXML.h>
15 #include <libxml/HTMLtree.h>
16 #include <libxml/xmlIO.h>
17 #include <libxml/DOCBparser.h>
18 #include <libxml/xinclude.h>
19 #include <libxml/catalog.h>
20 #include <libxslt/xslt.h>
21 #include <libxslt/xsltInternals.h>
22 #include <libxslt/transform.h>
23 #include <libxslt/xsltutils.h>
26 #include <kaboutdata.h>
27 #include <kcmdlineargs.h>
38 I18N_NOOP(
"Umbrello UML Modeller autonomous code generator");
42 int main(
int argc,
char *argv[])
44 xsltStylesheetPtr cur = NULL;
47 const char *params[16 + 1];
49 params[nbparams] = NULL;
51 KAboutData aboutData(
"umbodoc", 0, ki18n(
"Umbrello UML Modeller autonomous code generator"),
53 ki18n(
"(c) 2006 Gael de Chalendar (aka Kleag), (c) 2002-2006 Umbrello UML Modeller Authors"), KLocalizedString(),
54 "http://umbrello.kde.org/");
55 aboutData.addAuthor(ki18n(
"Gael de Chalendar (aka Kleag)"),KLocalizedString(),
"kleag@free.fr");
56 aboutData.addAuthor(ki18n(
"Umbrello UML Modeller Authors"), KLocalizedString(),
"umbrello-devel@kde.org");
59 KCmdLineOptions options;
60 options.add(
"+[File]", ki18n(
"File to transform"));
61 options.add(
"xslt <url>", ki18n(
"The XSLT file to use"));
62 KCmdLineArgs::addCmdLineOptions(options);
64 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
66 QCStringList xsltOpt = args->getOptionList(
"xslt");
67 if (xsltOpt.size() > 0)
69 QString xsltFile(xsltOpt.last());
71 xmlSubstituteEntitiesDefault(1);
73 cur = xsltParseStylesheetFile((
const xmlChar *)xsltFile.latin1());
74 doc = xmlParseFile(args->url(0).url().latin1());
75 res = xsltApplyStylesheet(cur, doc, params);
76 xsltSaveResultToFile(stdout, res, cur);
78 xsltFreeStylesheet(cur);
void init()
Reinitialize the unique ID counter.
int xmlLoadExtDtdDefaultValue
int main(int argc, char *argv[])
static const char description[]
QByteArray umbrelloVersion()
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.