]> matita.cs.unibo.it Git - helm.git/commitdiff
* added C++ binding
authorLuca Padovani <luca.padovani@unito.it>
Wed, 4 Dec 2002 20:00:38 +0000 (20:00 +0000)
committerLuca Padovani <luca.padovani@unito.it>
Wed, 4 Dec 2002 20:00:38 +0000 (20:00 +0000)
* fixed a few things in the C binding
* moving to the global configure.ac
* does not work yet

helm/DEVEL/gdome_xslt/C++/Makefile.am [new file with mode: 0644]
helm/DEVEL/gdome_xslt/C++/gdome_xslt/GdomeSmartDOMXSLT.hh [new file with mode: 0644]
helm/DEVEL/gdome_xslt/C++/gdome_xslt/GdomeSmartDOMXSLTStylesheet.cc [new file with mode: 0644]
helm/DEVEL/gdome_xslt/C++/gdome_xslt/GdomeSmartDOMXSLTStylesheet.hh [new file with mode: 0644]
helm/DEVEL/gdome_xslt/C++/gdome_xslt/Makefile.am [new file with mode: 0644]
helm/DEVEL/gdome_xslt/C++/test/Makefile.am [new file with mode: 0644]
helm/DEVEL/gdome_xslt/C++/test/main.cc [new file with mode: 0644]
helm/DEVEL/gdome_xslt/C/gdome_xslt/Makefile
helm/DEVEL/gdome_xslt/C/gdome_xslt/gdome_xslt.h
helm/DEVEL/gdome_xslt/C/test/Makefile
helm/DEVEL/gdome_xslt/Makefile

diff --git a/helm/DEVEL/gdome_xslt/C++/Makefile.am b/helm/DEVEL/gdome_xslt/C++/Makefile.am
new file mode 100644 (file)
index 0000000..4a4a9ba
--- /dev/null
@@ -0,0 +1,4 @@
+
+EXTRA_DIST = BUGS LICENSE aclocal.m4
+SUBDIRS = gdome_xslt test
+
diff --git a/helm/DEVEL/gdome_xslt/C++/gdome_xslt/GdomeSmartDOMXSLT.hh b/helm/DEVEL/gdome_xslt/C++/gdome_xslt/GdomeSmartDOMXSLT.hh
new file mode 100644 (file)
index 0000000..97b8cc6
--- /dev/null
@@ -0,0 +1,7 @@
+
+#ifndef __GdomeSmartDOMXSLT_hh__
+#define __GdomeSmartDOMXSLT_hh__
+
+#include "GdomeSmartDOMXSLTStylesheet.hh"
+
+#endif // __GdomeSmartDOMXSLT_hh__
diff --git a/helm/DEVEL/gdome_xslt/C++/gdome_xslt/GdomeSmartDOMXSLTStylesheet.cc b/helm/DEVEL/gdome_xslt/C++/gdome_xslt/GdomeSmartDOMXSLTStylesheet.cc
new file mode 100644 (file)
index 0000000..2bc2ce7
--- /dev/null
@@ -0,0 +1,123 @@
+// This file is part of a XSLT engine working on Gdome documents. In fact,
+// it just maps Gdome documents to libxml documents back and forth, and
+// applies the transformation on libxml documents using libxlt.
+// 
+// Copyright (C) 2002: Luca Padovani <lpadovan@cs.unibo.it>
+// 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// 
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+// 
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+//
+// For more information, please send an email to lpadovan@cs.unibo.it
+
+#include "config.h"
+
+#include <string>
+
+#include <stdio.h>
+#include <GdomeSmartDOM.hh>
+
+#include "GdomeSmartDOMXSLTStylesheet.hh"
+
+namespace GdomeSmartDOM {
+
+  XSLTStylesheet::XSLTStylesheet(const Document& doc)
+  {
+    assert(doc);
+    GdomeDocument* _doc = gdome_cast_doc(doc.gdome_object());
+    assert(_doc);
+    stylesheet = processStylesheet(_doc);
+    GdomeException _exc = 0;
+    gdome_doc_unref(_doc, &_exc);
+    assert(_exc == 0);
+  }
+
+  XSLTStylesheet::~XSLTStylesheet()
+  {
+    if (stylesheet)
+      {
+       xsltFreeStylesheet(stylesheet);
+       stylesheet = 0;
+      }
+  }
+
+  Document
+  XSLTStylesheet::apply(const Document& source, const std::vector< std::pair<GdomeString,GdomeString> >& params) const
+  {
+    assert(source);
+
+    char** _params = (char**) malloc(sizeof(char*) * (2 * params.size() + 1));
+    for (unsigned i = 0; i < params.size(); i++)
+      {
+       std::string param = params[i].first;
+       _params[2 * i] = strdup(param.c_str());
+       std::string value = params[i].second;
+       _params[2 * i + 1] = strdup(value.c_str());
+      }
+    _params[2 * params.size()] = 0;
+
+    GdomeDocument* _source = gdome_cast_doc(source.gdome_object());
+    assert(_source);
+    GdomeDocument* _result = applyStylesheet(_source, stylesheet, const_cast<const char**>(_params));
+
+    GdomeException _exc = 0;
+    gdome_doc_unref(_source, &_exc);
+    assert(_exc == 0);
+
+    for (unsigned i = 0; i < 2 * params.size(); i++) free(_params[i]);
+    free(_params);
+
+    Document result(_result);
+    gdome_doc_unref(_result, &_exc);
+    assert(_exc == 0);
+
+    return result;
+  }
+
+  void
+  XSLTStylesheet::save(const Document& doc, const std::string& filename) const
+  {
+    assert(doc);
+    GdomeException _exc = 0;
+    GdomeDocument* _doc = gdome_cast_doc(doc.gdome_object());
+    assert(_doc);
+    if (saveResultToFilename(filename.c_str(), _doc, stylesheet, 0) < 0) throw SaveException();
+    gdome_doc_unref(_doc, &_exc);
+    assert(_exc == 0);
+  }
+
+  void
+  XSLTStylesheet::save(const Document& doc, FILE* f) const
+  {
+    assert(doc);
+    GdomeException _exc = 0;
+    GdomeDocument* _doc = gdome_cast_doc(doc.gdome_object());
+    assert(_doc);
+    if (saveResultToFile(f, _doc, stylesheet) < 0) throw SaveException();
+    gdome_doc_unref(_doc, &_exc);
+    assert(_exc == 0);
+  }
+
+  void
+  XSLTStylesheet::save(const Document& doc, int fd) const
+  {
+    assert(doc);
+    GdomeException _exc = 0;
+    GdomeDocument* _doc = gdome_cast_doc(doc.gdome_object());
+    assert(_doc);
+    if (saveResultToFd(fd, _doc, stylesheet) < 0) throw SaveException();
+    gdome_doc_unref(_doc, &_exc);
+    assert(_exc == 0);
+  }
+
+}
diff --git a/helm/DEVEL/gdome_xslt/C++/gdome_xslt/GdomeSmartDOMXSLTStylesheet.hh b/helm/DEVEL/gdome_xslt/C++/gdome_xslt/GdomeSmartDOMXSLTStylesheet.hh
new file mode 100644 (file)
index 0000000..57cf55b
--- /dev/null
@@ -0,0 +1,56 @@
+// This file is part of a XSLT engine working on Gdome documents. In fact,
+// it just maps Gdome documents to libxml documents back and forth, and
+// applies the transformation on libxml documents using libxlt.
+// 
+// Copyright (C) 2002: Luca Padovani <lpadovan@cs.unibo.it>
+// 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// 
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+// 
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+//
+// For more information, please send an email to lpadovan@cs.unibo.it
+
+#ifndef __GdomeSmartDOMXSLTStylesheet_hh__
+#define __GdomeSmartDOMXSLTStylesheet_hh__
+
+#include <vector>
+#include <string>
+#include <stdio.h>
+
+#include "gdome_xslt.h"
+#include <GdomeSmartDOM.hh>
+
+namespace GdomeSmartDOM {
+
+  class XSLTStylesheet
+  {
+  public:
+    explicit XSLTStylesheet(const Document& doc);
+    ~XSLTStylesheet();
+
+    Document apply(const Document& source, const std::vector< std::pair<GdomeString, GdomeString> >& params) const;
+    void     save(const Document& result, const std::string& filename) const;
+    void     save(const Document& result, FILE* f) const;
+    void     save(const Document& result, int fd) const;
+
+    class SaveException { };
+
+  private:
+    XSLTStylesheet(const XSLTStylesheet&);
+
+    xsltStylesheet* stylesheet;
+  };
+
+}
+
+#endif // __GdomeSmartDOMXSLTStylesheet_hh__
diff --git a/helm/DEVEL/gdome_xslt/C++/gdome_xslt/Makefile.am b/helm/DEVEL/gdome_xslt/C++/gdome_xslt/Makefile.am
new file mode 100644 (file)
index 0000000..bb2e266
--- /dev/null
@@ -0,0 +1,22 @@
+
+lib_LTLIBRARIES = libgdome_xslt_cpp_smart.la
+
+libgdome_xslt_cpp_smart_la_LDFLAGS = -version-info @VERSION_INFO@
+
+libgdome_xslt_cpp_smart_la_SOURCES = \
+  GdomeSmartDOMXSLTStylesheet.cc \
+  gdome_xslt.c
+
+pkginclude_HEADERS = \
+  GdomeSmartDOMXSLTStylesheet.hh \
+  GdomeSmartDOMXSLT.hh
+
+INCLUDES = \
+  $(GMETADOM_CFLAGS) \
+  $(LIBXSLT_CFLAGS) \
+  -I$(top_srcdir) \
+  -I$(top_srcdir)/../C/gdome_xslt
+
+gdome_xslt.c: $(top_srcdir)/../C/gdome_xslt/gdome_xslt.c
+       ln -s $< $@
+
diff --git a/helm/DEVEL/gdome_xslt/C++/test/Makefile.am b/helm/DEVEL/gdome_xslt/C++/test/Makefile.am
new file mode 100644 (file)
index 0000000..d65ab42
--- /dev/null
@@ -0,0 +1,18 @@
+
+noinst_PROGRAMS = test
+
+test_SOURCES = main.cc
+
+LDADDS = \
+  $(GMETADOM_LIBS) \
+  $(LIBXSLT_LIBS) \
+  $(top_builddir)/gdome_xslt/.libs/libgdome_xslt_cpp_smart.a
+
+test_LDADD = $(LDADDS)
+
+INCLUDES = \
+  $(GMETADOM_CFLAGS) \
+  $(LIBXSLT_CFLAGS) \
+  -I$(top_srcdir)/gdome_xslt \
+  -I$(top_srcdir)/../C/gdome_xslt
+
diff --git a/helm/DEVEL/gdome_xslt/C++/test/main.cc b/helm/DEVEL/gdome_xslt/C++/test/main.cc
new file mode 100644 (file)
index 0000000..9c9625f
--- /dev/null
@@ -0,0 +1,52 @@
+/* This file is a test for the XSLT engine working on Gdome documents.
+ *
+ * Copyright (C) 2002 Claudio Sacerdoti Coen <sacerdot@cs.unibo.it>
+ * 
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ * 
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ * 
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * For more information, please send an email to <sacerdot@cs.unibo.it>
+ */
+
+#include <string>
+#include <iostream>
+#include "GdomeSmartDOMXSLT.hh"
+
+namespace DOM = GdomeSmartDOM;
+
+#define        OUTPUT_FILE             "../../test_files/output.xml"
+#define CORRECT_OUTPUT_FILE    "../../test_files/output.xml.correct"
+
+int
+main(void)
+{
+   int bytes;
+   DOM::DOMImplementation di;
+   std::vector< std::pair<DOM::GdomeString, DOM::GdomeString> > params;
+
+   params.push_back(make_pair(DOM::GdomeString("parameter1"), DOM::GdomeString("'value1'")));
+   params.push_back(make_pair(DOM::GdomeString("parameter2"), DOM::GdomeString("'value2'")));
+   params.push_back(make_pair(DOM::GdomeString("parameter3"), DOM::GdomeString("'value3'")));
+
+   DOM::Document input = di.createDocumentFromURI("../../test_files/input.xml");
+   DOM::Document style = di.createDocumentFromURI("../../test_files/stylesheet.xsl");
+
+   DOM::XSLTStylesheet style_libxslt(style);
+   DOM::Document output = style_libxslt.apply(input, params);
+   style_libxslt.save(output, OUTPUT_FILE);
+
+   cout << "The test was successful iff " << OUTPUT_FILE << " is equal to " << CORRECT_OUTPUT_FILE << endl;
+
+   return 0;
+}
index 77ad9f28d6717afe3cfc03f4b9cb63f6ee3f4418..8c99901c6e747e1235dc57aafb0269443bab20a8 100644 (file)
@@ -1,9 +1,364 @@
-INCLUDES = `gdome-config --cflags` `xslt-config --cflags`
+# Makefile.in generated automatically by automake 1.5 from Makefile.am.
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+# Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+SHELL = /bin/sh
+
+srcdir = .
+top_srcdir = ../..
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+bindir = ${exec_prefix}/bin
+sbindir = ${exec_prefix}/sbin
+libexecdir = ${exec_prefix}/libexec
+datadir = ${prefix}/share
+sysconfdir = ${prefix}/etc
+sharedstatedir = ${prefix}/com
+localstatedir = ${prefix}/var
+libdir = ${exec_prefix}/lib
+infodir = ${prefix}/info
+mandir = ${prefix}/man
+includedir = ${prefix}/include
+oldincludedir = /usr/include
+pkgdatadir = $(datadir)/gdome2-xslt
+pkglibdir = $(libdir)/gdome2-xslt
+pkgincludedir = $(includedir)/gdome2-xslt
+top_builddir = ../..
+
+ACLOCAL = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run aclocal
+AUTOCONF = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run autoconf
+AUTOMAKE = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run automake
+AUTOHEADER = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run autoheader
+
+INSTALL = /usr/bin/install -c
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = s,x,x,
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_alias = 
+host_triplet = i686-pc-linux-gnu
+AMTAR = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run tar
+AS = @AS@
+AWK = mawk
 CC = gcc
-CFLAGS = -Wall
+CXX = g++
+DEPDIR = .deps
+DLLTOOL = @DLLTOOL@
+ECHO = echo
+EXEEXT = 
+GDOME_CFLAGS = -I/home/luca/Local/include -I/home/luca/Local/include/libgdome -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/home/luca/Local/include/libxml2
+GDOME_LIBS = -L/home/luca/Local/lib -L/usr/lib -lgdome -lglib -lxml2 -lz -lm
+GMETADOM_CFLAGS = -I/home/luca/Local/include/gmetadom/gdome_cpp_smart -I/home/luca/Local/include -I/home/luca/Local/include/libgdome -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/home/luca/Local/include/libxml2
+GMETADOM_LIBS = -L/home/luca/Local/lib -lgmetadom_gdome_cpp_smart -L/home/luca/Local/lib -L/usr/lib -lgdome -lglib -lxml2 -lz -lm
+HAVE_OCAMLC = yes
+HAVE_OCAMLFIND = yes
+INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXSLT_CFLAGS = -I/home/luca/Local/include/libxml2
+LIBXSLT_LIBS = -L/usr/lib -lxslt -lxml2 -lm
+LN_S = ln -s
+OBJDUMP = @OBJDUMP@
+OBJEXT = o
+OCAML_INCLUDE_DIR = /usr/include/caml
+PACKAGE = gdome2-xslt
+RANLIB = ranlib
+STRIP = strip
+VERSION = 0.0.3
+VERSION_INFO = 0:3:0
+am__include = include
+am__quote = 
+install_sh = /home/luca/Projects/helm/DEVEL/gdome_xslt/install-sh
+
+lib_LTLIBRARIES = libgdome_xslt.la
+
+libgdome_xslt_la_LDFLAGS = -version-info 0:3:0
+
+libgdome_xslt_la_SOURCES = gdome_xslt.c
+
+pkginclude_HEADERS = gdome_xslt.h
+
+INCLUDES = \
+  $(GDOME_CFLAGS) \
+  $(LIBXSLT_CFLAGS) \
+  -I$(top_srcdir)
+
+subdir = C/gdome_xslt
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+LTLIBRARIES = $(lib_LTLIBRARIES)
+
+libgdome_xslt_la_LIBADD =
+am_libgdome_xslt_la_OBJECTS = gdome_xslt.lo
+libgdome_xslt_la_OBJECTS = $(am_libgdome_xslt_la_OBJECTS)
+
+DEFS = -DHAVE_CONFIG_H
+DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
+CPPFLAGS = 
+LDFLAGS = 
+LIBS = 
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+DEP_FILES = $(DEPDIR)/gdome_xslt.Plo
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+       $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+       $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+CFLAGS = -g -O2
+DIST_SOURCES = $(libgdome_xslt_la_SOURCES)
+HEADERS = $(pkginclude_HEADERS)
+
+DIST_COMMON = $(pkginclude_HEADERS) Makefile.am Makefile.in
+SOURCES = $(libgdome_xslt_la_SOURCES)
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+distclean-libtool:
+       -rm -f libtool
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
+       cd $(top_srcdir) && \
+         $(AUTOMAKE) --gnu  C/gdome_xslt/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+       cd $(top_builddir) && \
+         CONFIG_HEADERS= CONFIG_LINKS= \
+         CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+       @$(NORMAL_INSTALL)
+       $(mkinstalldirs) $(DESTDIR)$(libdir)
+       @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+         if test -f $$p; then \
+           echo " $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$p"; \
+           $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$p; \
+         else :; fi; \
+       done
+
+uninstall-libLTLIBRARIES:
+       @$(NORMAL_UNINSTALL)
+       @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+         echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
+         $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
+       done
+
+clean-libLTLIBRARIES:
+       -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+libgdome_xslt.la: $(libgdome_xslt_la_OBJECTS) $(libgdome_xslt_la_DEPENDENCIES) 
+       $(LINK) -rpath $(libdir) $(libgdome_xslt_la_LDFLAGS) $(libgdome_xslt_la_OBJECTS) $(libgdome_xslt_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+       -rm -f *.$(OBJEXT) core *.core
+
+distclean-compile:
+       -rm -f *.tab.c
+
+include $(DEPDIR)/gdome_xslt.Plo
+
+distclean-depend:
+       -rm -rf $(DEPDIR)
+
+.c.o:
+       source='$<' object='$@' libtool=no \
+       depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
+       $(CCDEPMODE) $(depcomp) \
+       $(COMPILE) -c `test -f $< || echo '$(srcdir)/'`$<
+
+.c.obj:
+       source='$<' object='$@' libtool=no \
+       depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
+       $(CCDEPMODE) $(depcomp) \
+       $(COMPILE) -c `cygpath -w $<`
+
+.c.lo:
+       source='$<' object='$@' libtool=yes \
+       depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' \
+       $(CCDEPMODE) $(depcomp) \
+       $(LTCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
+CCDEPMODE = depmode=gcc
+uninstall-info-am:
+install-pkgincludeHEADERS: $(pkginclude_HEADERS)
+       @$(NORMAL_INSTALL)
+       $(mkinstalldirs) $(DESTDIR)$(pkgincludedir)
+       @list='$(pkginclude_HEADERS)'; for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         f="`echo $$p | sed -e 's|^.*/||'`"; \
+         echo " $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(pkgincludedir)/$$f"; \
+         $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(pkgincludedir)/$$f; \
+       done
+
+uninstall-pkgincludeHEADERS:
+       @$(NORMAL_UNINSTALL)
+       @list='$(pkginclude_HEADERS)'; for p in $$list; do \
+         f="`echo $$p | sed -e 's|^.*/||'`"; \
+         echo " rm -f $(DESTDIR)$(pkgincludedir)/$$f"; \
+         rm -f $(DESTDIR)$(pkgincludedir)/$$f; \
+       done
+
+tags: TAGS
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+       list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       mkid -fID $$unique $(LISP)
+
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+               $(TAGS_FILES) $(LISP)
+       tags=; \
+       here=`pwd`; \
+       list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
+         || etags $(ETAGS_ARGS) $$tags  $$unique $(LISP)
+
+GTAGS:
+       here=`CDPATH=: && cd $(top_builddir) && pwd` \
+         && cd $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
+
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ../..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+distdir: $(DISTFILES)
+       @for file in $(DISTFILES); do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           $(mkinstalldirs) "$(distdir)/$$dir"; \
+         fi; \
+         if test -d $$d/$$file; then \
+           cp -pR $$d/$$file $(distdir) \
+           || exit 1; \
+         else \
+           test -f $(distdir)/$$file \
+           || cp -p $$d/$$file $(distdir)/$$file \
+           || exit 1; \
+         fi; \
+       done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES) $(HEADERS)
+
+installdirs:
+       $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(pkgincludedir)
+
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+         `test -z '$(STRIP)' || \
+           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+       -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
+       mostlyclean-am
+
+distclean: distclean-am
+
+distclean-am: clean-am distclean-compile distclean-depend \
+       distclean-generic distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-pkgincludeHEADERS
+
+install-exec-am: install-libLTLIBRARIES
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+       mostlyclean-libtool
+
+uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
+       uninstall-pkgincludeHEADERS
 
-gdome_xslt.o: gdome_xslt.c
-       $(CC) $(CFLAGS) -c $(INCLUDES) $<
+.PHONY: GTAGS all all-am check check-am clean clean-generic \
+       clean-libLTLIBRARIES clean-libtool distclean distclean-compile \
+       distclean-depend distclean-generic distclean-libtool \
+       distclean-tags distdir dvi dvi-am info info-am install \
+       install-am install-data install-data-am install-exec \
+       install-exec-am install-info install-info-am \
+       install-libLTLIBRARIES install-man install-pkgincludeHEADERS \
+       install-strip installcheck installcheck-am installdirs \
+       maintainer-clean maintainer-clean-generic mostlyclean \
+       mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
+       tags uninstall uninstall-am uninstall-info-am \
+       uninstall-libLTLIBRARIES uninstall-pkgincludeHEADERS
 
-clean:
-       rm -f gdome_xslt.o
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
index 88da4ec0ff381cd45642af54ac9a85fc804a98c7..685c7afb44fa65acfa2814d8ac0b41e461d25717 100644 (file)
@@ -1,7 +1,7 @@
 
 /* This file implements a XSLT engine working on Gdome documents. In fact,
  * it just maps Gdome documents to libxml documents back and forth, and
- * applyes the transformation on libxml documents using libxlt.
+ * applies the transformation on libxml documents using libxlt.
  * 
  * The code is largely based on the code of T.J. Mather's XML::GDOME::XSLT
  * Perl module (http://kobesearch.cpan.org/search?dist=XML-GDOME-XSLT)
  * For more information, please send an email to {sacerdot,zack}@cs.unibo.it
  */
 
+#ifndef __gdome_xslt_h__
+#define __gdome_xslt_h__
+
+#include <gdome.h>
+#include <libxslt/xsltconfig.h>
+#include <libxslt/xslt.h>
+#include <libxslt/xsltutils.h>
+#include <libxslt/transform.h>
+#include <libxslt/imports.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
 
 xsltStylesheetPtr      processStylesheet       (GdomeDocument* style);
 
@@ -44,4 +57,8 @@ int                   saveResultToFile        (FILE* file,
 int                    saveResultToFd          (int fd,
                                                 GdomeDocument* result,
                                                 xsltStylesheetPtr style_libxslt);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
 
+#endif /* __gdome_xslt_h__ */
index 6f9482eec12b59af05059f1da2f44e7cd4617f33..ce7e204f0ca219b9c3fb4717e980359c98201110 100644 (file)
-INCLUDES = `gdome-config --cflags` `xslt-config --cflags` -I $(GDOMEXSLTPATH)
-LIBS = `gdome-config --libs` `xslt-config --libs`
+# Makefile.in generated automatically by automake 1.5 from Makefile.am.
 
-GDOMEXSLTPATH = ../gdome_xslt
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+# Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
 
-test: test.c
-       gcc -o $@ $(INCLUDES) $(LIBS) $(GDOMEXSLTPATH)/gdome_xslt.o $<
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
 
-clean:
-       rm -f test
+
+
+SHELL = /bin/sh
+
+srcdir = .
+top_srcdir = ../..
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+bindir = ${exec_prefix}/bin
+sbindir = ${exec_prefix}/sbin
+libexecdir = ${exec_prefix}/libexec
+datadir = ${prefix}/share
+sysconfdir = ${prefix}/etc
+sharedstatedir = ${prefix}/com
+localstatedir = ${prefix}/var
+libdir = ${exec_prefix}/lib
+infodir = ${prefix}/info
+mandir = ${prefix}/man
+includedir = ${prefix}/include
+oldincludedir = /usr/include
+pkgdatadir = $(datadir)/gdome2-xslt
+pkglibdir = $(libdir)/gdome2-xslt
+pkgincludedir = $(includedir)/gdome2-xslt
+top_builddir = ../..
+
+ACLOCAL = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run aclocal
+AUTOCONF = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run autoconf
+AUTOMAKE = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run automake
+AUTOHEADER = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run autoheader
+
+INSTALL = /usr/bin/install -c
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = s,x,x,
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_alias = 
+host_triplet = i686-pc-linux-gnu
+AMTAR = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run tar
+AS = @AS@
+AWK = mawk
+CC = gcc
+CXX = g++
+DEPDIR = .deps
+DLLTOOL = @DLLTOOL@
+ECHO = echo
+EXEEXT = 
+GDOME_CFLAGS = -I/home/luca/Local/include -I/home/luca/Local/include/libgdome -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/home/luca/Local/include/libxml2
+GDOME_LIBS = -L/home/luca/Local/lib -L/usr/lib -lgdome -lglib -lxml2 -lz -lm
+GMETADOM_CFLAGS = -I/home/luca/Local/include/gmetadom/gdome_cpp_smart -I/home/luca/Local/include -I/home/luca/Local/include/libgdome -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/home/luca/Local/include/libxml2
+GMETADOM_LIBS = -L/home/luca/Local/lib -lgmetadom_gdome_cpp_smart -L/home/luca/Local/lib -L/usr/lib -lgdome -lglib -lxml2 -lz -lm
+HAVE_OCAMLC = yes
+HAVE_OCAMLFIND = yes
+INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXSLT_CFLAGS = -I/home/luca/Local/include/libxml2
+LIBXSLT_LIBS = -L/usr/lib -lxslt -lxml2 -lm
+LN_S = ln -s
+OBJDUMP = @OBJDUMP@
+OBJEXT = o
+OCAML_INCLUDE_DIR = /usr/include/caml
+PACKAGE = gdome2-xslt
+RANLIB = ranlib
+STRIP = strip
+VERSION = 0.0.3
+VERSION_INFO = 0:3:0
+am__include = include
+am__quote = 
+install_sh = /home/luca/Projects/helm/DEVEL/gdome_xslt/install-sh
+
+noinst_PROGRAMS = test
+
+test_SOURCES = test.c
+
+LDADDS = $(GDOME_LIBS) $(LIBXSLT_LIBS)
+
+test_LDADD = $(LDADDS)
+
+INCLUDES = \
+  $(GDOME_CFLAGS) \
+  $(LIBXSLT_CFLAGS) \
+  -I$(top_srcdir)/gdome_xslt
+
+subdir = C/test
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+noinst_PROGRAMS = test$(EXEEXT)
+PROGRAMS = $(noinst_PROGRAMS)
+
+am_test_OBJECTS = test.$(OBJEXT)
+test_OBJECTS = $(am_test_OBJECTS)
+test_DEPENDENCIES =
+test_LDFLAGS =
+
+DEFS = -DHAVE_CONFIG_H
+DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
+CPPFLAGS = 
+LDFLAGS = 
+LIBS = 
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+DEP_FILES = $(DEPDIR)/test.Po
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+       $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+       $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+CFLAGS = -g -O2
+DIST_SOURCES = $(test_SOURCES)
+DIST_COMMON = Makefile.am Makefile.in
+SOURCES = $(test_SOURCES)
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+distclean-libtool:
+       -rm -f libtool
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
+       cd $(top_srcdir) && \
+         $(AUTOMAKE) --gnu  C/test/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+       cd $(top_builddir) && \
+         CONFIG_HEADERS= CONFIG_LINKS= \
+         CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
+
+clean-noinstPROGRAMS:
+       -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
+test$(EXEEXT): $(test_OBJECTS) $(test_DEPENDENCIES) 
+       @rm -f test$(EXEEXT)
+       $(LINK) $(test_LDFLAGS) $(test_OBJECTS) $(test_LDADD) $(LIBS)
+
+mostlyclean-compile:
+       -rm -f *.$(OBJEXT) core *.core
+
+distclean-compile:
+       -rm -f *.tab.c
+
+include $(DEPDIR)/test.Po
+
+distclean-depend:
+       -rm -rf $(DEPDIR)
+
+.c.o:
+       source='$<' object='$@' libtool=no \
+       depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
+       $(CCDEPMODE) $(depcomp) \
+       $(COMPILE) -c `test -f $< || echo '$(srcdir)/'`$<
+
+.c.obj:
+       source='$<' object='$@' libtool=no \
+       depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
+       $(CCDEPMODE) $(depcomp) \
+       $(COMPILE) -c `cygpath -w $<`
+
+.c.lo:
+       source='$<' object='$@' libtool=yes \
+       depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' \
+       $(CCDEPMODE) $(depcomp) \
+       $(LTCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
+CCDEPMODE = depmode=gcc
+uninstall-info-am:
+
+tags: TAGS
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+       list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       mkid -fID $$unique $(LISP)
+
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+               $(TAGS_FILES) $(LISP)
+       tags=; \
+       here=`pwd`; \
+       list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
+         || etags $(ETAGS_ARGS) $$tags  $$unique $(LISP)
+
+GTAGS:
+       here=`CDPATH=: && cd $(top_builddir) && pwd` \
+         && cd $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
+
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ../..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+distdir: $(DISTFILES)
+       @for file in $(DISTFILES); do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           $(mkinstalldirs) "$(distdir)/$$dir"; \
+         fi; \
+         if test -d $$d/$$file; then \
+           cp -pR $$d/$$file $(distdir) \
+           || exit 1; \
+         else \
+           test -f $(distdir)/$$file \
+           || cp -p $$d/$$file $(distdir)/$$file \
+           || exit 1; \
+         fi; \
+       done
+check-am: all-am
+check: check-am
+all-am: Makefile $(PROGRAMS)
+
+installdirs:
+
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+         `test -z '$(STRIP)' || \
+           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+       -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
+       mostlyclean-am
+
+distclean: distclean-am
+
+distclean-am: clean-am distclean-compile distclean-depend \
+       distclean-generic distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+       mostlyclean-libtool
+
+uninstall-am: uninstall-info-am
+
+.PHONY: GTAGS all all-am check check-am clean clean-generic \
+       clean-libtool clean-noinstPROGRAMS distclean distclean-compile \
+       distclean-depend distclean-generic distclean-libtool \
+       distclean-tags distdir dvi dvi-am info info-am install \
+       install-am install-data install-data-am install-exec \
+       install-exec-am install-info install-info-am install-man \
+       install-strip installcheck installcheck-am installdirs \
+       maintainer-clean maintainer-clean-generic mostlyclean \
+       mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
+       tags uninstall uninstall-am uninstall-info-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
index 643230df2edff791af602f88c2a1cff45e46c6a4..9b2a1dcc5d345e3d97485b4de5aa51a9909971ed 100644 (file)
+# Makefile.in generated automatically by automake 1.5 from Makefile.am.
 
-VERSION = 0.0.2
-NAME = libxslt-ocaml
-QNAME = $(NAME)-$(VERSION)
-DIST_DIRS = C ocaml test_files debian
-SOURCE_DIRS = C/gdome_xslt/ ocaml/gdome_xslt/
-NODIST = CVS .cvsignore
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+# Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
 
-all:
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
 
-clean:
-       -make -C ocaml/gdome_xslt/ distclean
-       -make -C C/gdome_xslt/ clean
 
-dist: clean
 
-               # copy dist stuff in dist dir
-       mkdir $(QNAME)/
-       for d in $(DIST_DIRS); do \
-               cp -a $$d $(QNAME)/; \
+SHELL = /bin/sh
+
+srcdir = .
+top_srcdir = .
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+
+bindir = ${exec_prefix}/bin
+sbindir = ${exec_prefix}/sbin
+libexecdir = ${exec_prefix}/libexec
+datadir = ${prefix}/share
+sysconfdir = ${prefix}/etc
+sharedstatedir = ${prefix}/com
+localstatedir = ${prefix}/var
+libdir = ${exec_prefix}/lib
+infodir = ${prefix}/info
+mandir = ${prefix}/man
+includedir = ${prefix}/include
+oldincludedir = /usr/include
+pkgdatadir = $(datadir)/gdome2-xslt
+pkglibdir = $(libdir)/gdome2-xslt
+pkgincludedir = $(includedir)/gdome2-xslt
+top_builddir = .
+
+ACLOCAL = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run aclocal
+AUTOCONF = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run autoconf
+AUTOMAKE = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run automake
+AUTOHEADER = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run autoheader
+
+INSTALL = /usr/bin/install -c
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = s,x,x,
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_alias = 
+host_triplet = i686-pc-linux-gnu
+AMTAR = ${SHELL} /home/luca/Projects/helm/DEVEL/gdome_xslt/missing --run tar
+AS = @AS@
+AWK = mawk
+CC = gcc
+CXX = g++
+DEPDIR = .deps
+DLLTOOL = @DLLTOOL@
+ECHO = echo
+EXEEXT = 
+GDOME_CFLAGS = -I/home/luca/Local/include -I/home/luca/Local/include/libgdome -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/home/luca/Local/include/libxml2
+GDOME_LIBS = -L/home/luca/Local/lib -L/usr/lib -lgdome -lglib -lxml2 -lz -lm
+GMETADOM_CFLAGS = -I/home/luca/Local/include/gmetadom/gdome_cpp_smart -I/home/luca/Local/include -I/home/luca/Local/include/libgdome -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/home/luca/Local/include/libxml2
+GMETADOM_LIBS = -L/home/luca/Local/lib -lgmetadom_gdome_cpp_smart -L/home/luca/Local/lib -L/usr/lib -lgdome -lglib -lxml2 -lz -lm
+HAVE_OCAMLC = yes
+HAVE_OCAMLFIND = yes
+INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXSLT_CFLAGS = -I/home/luca/Local/include/libxml2
+LIBXSLT_LIBS = -L/usr/lib -lxslt -lxml2 -lm
+LN_S = ln -s
+OBJDUMP = @OBJDUMP@
+OBJEXT = o
+OCAML_INCLUDE_DIR = /usr/include/caml
+PACKAGE = gdome2-xslt
+RANLIB = ranlib
+STRIP = strip
+VERSION = 0.0.3
+VERSION_INFO = 0:3:0
+am__include = include
+am__quote = 
+install_sh = /home/luca/Projects/helm/DEVEL/gdome_xslt/install-sh
+
+EXTRA_DIST = BUGS LICENSE aclocal.m4
+
+SUBDIRS = C C++ ocaml test_files debian
+subdir = .
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES = ocaml/Makefile ocaml/gdome_xslt/Makefile \
+       ocaml/test/Makefile test_files/Makefile debian/Makefile
+DIST_SOURCES =
+
+RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
+       uninstall-info-recursive all-recursive install-data-recursive \
+       install-exec-recursive installdirs-recursive install-recursive \
+       uninstall-recursive check-recursive installcheck-recursive
+DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
+       Makefile.am Makefile.in NEWS aclocal.m4 config.guess \
+       config.h.in config.sub configure configure.ac depcomp \
+       install-sh ltmain.sh missing mkinstalldirs
+DIST_SUBDIRS = $(SUBDIRS)
+all: config.h
+       $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+.SUFFIXES:
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+distclean-libtool:
+       -rm -f libtool
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
+       cd $(top_srcdir) && \
+         $(AUTOMAKE) --gnu  Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+       cd $(top_builddir) && \
+         CONFIG_HEADERS= CONFIG_LINKS= \
+         CONFIG_FILES=$@ $(SHELL) ./config.status
+
+$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       $(SHELL) ./config.status --recheck
+$(srcdir)/configure:  $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
+       cd $(srcdir) && $(AUTOCONF)
+
+$(ACLOCAL_M4):  configure.ac 
+       cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+config.h: stamp-h
+       @if test ! -f $@; then \
+               rm -f stamp-h; \
+               $(MAKE) stamp-h; \
+       else :; fi
+stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
+       @rm -f stamp-h stamp-hT
+       @echo timestamp > stamp-hT 2> /dev/null
+       cd $(top_builddir) \
+         && CONFIG_FILES= CONFIG_HEADERS=config.h \
+            $(SHELL) ./config.status
+       @mv stamp-hT stamp-h
+$(srcdir)/config.h.in:  $(srcdir)/./stamp-h.in
+       @if test ! -f $@; then \
+               rm -f $(srcdir)/./stamp-h.in; \
+               $(MAKE) $(srcdir)/./stamp-h.in; \
+       else :; fi
+$(srcdir)/./stamp-h.in: $(top_srcdir)/configure.ac $(ACLOCAL_M4) 
+       @rm -f $(srcdir)/./stamp-h.in $(srcdir)/./stamp-h.inT
+       @echo timestamp > $(srcdir)/./stamp-h.inT 2> /dev/null
+       cd $(top_srcdir) && $(AUTOHEADER)
+       @mv $(srcdir)/./stamp-h.inT $(srcdir)/./stamp-h.in
+
+distclean-hdr:
+       -rm -f config.h
+ocaml/Makefile: $(top_builddir)/config.status $(top_srcdir)/ocaml/Makefile.in
+       cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
+ocaml/gdome_xslt/Makefile: $(top_builddir)/config.status $(top_srcdir)/ocaml/gdome_xslt/Makefile.in
+       cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
+ocaml/test/Makefile: $(top_builddir)/config.status $(top_srcdir)/ocaml/test/Makefile.in
+       cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
+test_files/Makefile: $(top_builddir)/config.status $(top_srcdir)/test_files/Makefile.in
+       cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
+debian/Makefile: $(top_builddir)/config.status $(top_srcdir)/debian/Makefile.in
+       cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
+uninstall-info-am:
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+#     (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+       @set fnord $(MAKEFLAGS); amf=$$2; \
+       dot_seen=no; \
+       target=`echo $@ | sed s/-recursive//`; \
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         echo "Making $$target in $$subdir"; \
+         if test "$$subdir" = "."; then \
+           dot_seen=yes; \
+           local_target="$$target-am"; \
+         else \
+           local_target="$$target"; \
+         fi; \
+         (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+       done; \
+       if test "$$dot_seen" = "no"; then \
+         $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+       fi; test -z "$$fail"
+
+mostlyclean-recursive clean-recursive distclean-recursive \
+maintainer-clean-recursive:
+       @set fnord $(MAKEFLAGS); amf=$$2; \
+       dot_seen=no; \
+       case "$@" in \
+         distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+         *) list='$(SUBDIRS)' ;; \
+       esac; \
+       rev=''; for subdir in $$list; do \
+         if test "$$subdir" = "."; then :; else \
+           rev="$$subdir $$rev"; \
+         fi; \
+       done; \
+       rev="$$rev ."; \
+       target=`echo $@ | sed s/-recursive//`; \
+       for subdir in $$rev; do \
+         echo "Making $$target in $$subdir"; \
+         if test "$$subdir" = "."; then \
+           local_target="$$target-am"; \
+         else \
+           local_target="$$target"; \
+         fi; \
+         (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+       done && test -z "$$fail"
+tags-recursive:
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
        done
 
-               # remove garbage
-       -for p in $(NODIST); do \
-               find $(QNAME)/ -name $$p -exec rm -rf {} \; 2> /dev/null; \
+tags: TAGS
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+       list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       mkid -fID $$unique $(LISP)
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
+               $(TAGS_FILES) $(LISP)
+       tags=; \
+       here=`pwd`; \
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         if test "$$subdir" = .; then :; else \
+           test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
+         fi; \
+       done; \
+       list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
+         || etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP)
+
+GTAGS:
+       here=`CDPATH=: && cd $(top_builddir) && pwd` \
+         && cd $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
+
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = .
+# Avoid unsightly `./'.
+distdir = $(PACKAGE)-$(VERSION)
+
+GZIP_ENV = --best
+
+distdir: $(DISTFILES)
+       -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
+       mkdir $(distdir)
+       $(mkinstalldirs) $(distdir)/C++ $(distdir)/debian $(distdir)/ocaml $(distdir)/ocaml/gdome_xslt $(distdir)/ocaml/test $(distdir)/test_files
+       @for file in $(DISTFILES); do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           $(mkinstalldirs) "$(distdir)/$$dir"; \
+         fi; \
+         if test -d $$d/$$file; then \
+           cp -pR $$d/$$file $(distdir) \
+           || exit 1; \
+         else \
+           test -f $(distdir)/$$file \
+           || cp -p $$d/$$file $(distdir)/$$file \
+           || exit 1; \
+         fi; \
        done
+       for subdir in $(SUBDIRS); do \
+         if test "$$subdir" = .; then :; else \
+           test -d $(distdir)/$$subdir \
+           || mkdir $(distdir)/$$subdir \
+           || exit 1; \
+           (cd $$subdir && \
+             $(MAKE) $(AM_MAKEFLAGS) \
+               top_distdir="$(top_distdir)" \
+               distdir=../$(distdir)/$$subdir \
+               distdir) \
+             || exit 1; \
+         fi; \
+       done
+       -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+         ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+         ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+         ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
+       || chmod -R a+r $(distdir)
+dist: distdir
+       $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+       -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
+
+# This target untars the dist file and tries a VPATH configuration.  Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+       -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
+       GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
+       chmod -R a-w $(distdir); chmod a+w $(distdir)
+       mkdir $(distdir)/=build
+       mkdir $(distdir)/=inst
+       chmod a-w $(distdir)
+       dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \
+         && cd $(distdir)/=build \
+         && ../configure --srcdir=.. --prefix=$$dc_install_base \
+         && $(MAKE) $(AM_MAKEFLAGS) \
+         && $(MAKE) $(AM_MAKEFLAGS) dvi \
+         && $(MAKE) $(AM_MAKEFLAGS) check \
+         && $(MAKE) $(AM_MAKEFLAGS) install \
+         && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+         && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+         && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \
+            || (echo "Error: files left after uninstall" 1>&2; \
+                exit 1) ) \
+         && $(MAKE) $(AM_MAKEFLAGS) dist \
+         && $(MAKE) $(AM_MAKEFLAGS) distclean \
+         && rm -f $(distdir).tar.gz \
+         && (test `find . -type f -print | wc -l` -eq 0 \
+            || (echo "Error: files left after distclean" 1>&2; \
+                exit 1) )
+       -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
+       @echo "$(distdir).tar.gz is ready for distribution" | \
+         sed 'h;s/./=/g;p;x;p;x'
+check-am: all-am
+check: check-recursive
+all-am: Makefile config.h
+installdirs: installdirs-recursive
+installdirs-am:
+
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+         `test -z '$(STRIP)' || \
+           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+       -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+dist-all: distdir
+       $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+       -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
+distclean: distclean-recursive
+       -rm -f config.status config.cache config.log
+distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \
+       distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-exec-am:
+
+install-info: install-info-recursive
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+uninstall-am: uninstall-info-am
 
-               # create tarball and remove distdir
-       tar --remove-files -czf $(QNAME).tar.gz $(QNAME)/
-       rm -rf $(QNAME)
+uninstall-info: uninstall-info-recursive
 
-.PHONY: all clean dist
+.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
+       clean-generic clean-libtool clean-recursive dist dist-all \
+       distcheck distclean distclean-generic distclean-hdr \
+       distclean-libtool distclean-recursive distclean-tags distdir \
+       dvi dvi-am dvi-recursive info info-am info-recursive install \
+       install-am install-data install-data-am install-data-recursive \
+       install-exec install-exec-am install-exec-recursive \
+       install-info install-info-am install-info-recursive install-man \
+       install-recursive install-strip installcheck installcheck-am \
+       installdirs installdirs-am installdirs-recursive \
+       maintainer-clean maintainer-clean-generic \
+       maintainer-clean-recursive mostlyclean mostlyclean-generic \
+       mostlyclean-libtool mostlyclean-recursive tags tags-recursive \
+       uninstall uninstall-am uninstall-info-am \
+       uninstall-info-recursive uninstall-recursive
 
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT: