+Tue May 22 15:09:02 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
+
+ * configure.in libxslt/Makefile.am: fixed bug #54953
+ * libxslt/attributes.c: cleanup pointed by Joe Orton
+ * libxslt/xsltproc.c: added --catalogs to load catalogs from
+ $SGML_CATALOG_FILES
+ * libxslt/functions.c: cleanup unreached code
+ * configure.in config.h.in libxslt/xsltproc.c: guarded the
+ include with preprocessor definitions
+
Sun May 20 20:55:00 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* tests/documents/Makefile.am tests/general/Makefile.am
< $(srcdir)/xsltConf.sh.in > xsltConf.tmp \
&& mv xsltConf.tmp xsltConf.sh
+check-local: tests
+
dummy:
-test tests: dummy
+tests: dummy
@(cd tests ; make test)
cleantar:
/* Define if you have the <nan.h> header file. */
#undef HAVE_NAN_H
+
+/* Define if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define if you have the <sys/time.h> header file. */
+#undef HAVE_SYS_TIME_H
+
+/* Define if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Name of package */
+#undef PACKAGE
+
+/* Version number of package */
+#undef VERSION
+
VERSION=${LIBXSLT_VERSION}
AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
+AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
AM_MAINTAINER_MODE
dnl
dnl Math detection
dnl
+AC_CHECK_HEADERS(sys/types.h sys/time.h stdlib.h unistd.h string.h)
AC_CHECK_HEADERS(ieeefp.h nan.h math.h fp_class.h float.h ansidecl.h)
AC_CHECK_FUNC(isnan, , AC_CHECK_LIB(m, isnan,
[M_LIBS="-lm"; AC_DEFINE(HAVE_ISNAN)]))
AM_CONDITIONAL(WITH_PERL, test "$PERL" != "false")
dnl
-dnl Debug for DV
+dnl Debug for DV (-Wunreachable-code)
dnl
if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ; then
if test "${with_mem_debug}" = "" ; then
transform.c
libxslt_la_LIBADD = $(EXTRA_LIBS)
+libxslt_la_LDFLAGS = -version-info @LIBXSLT_VERSION_INFO@
# what is this include dir ?
# libxsltincdir = $(includedir)/libxslt
xmlChar *prefix = NULL;
xmlChar *attributes;
xmlChar *attribute, *end;
- xmlNodePtr list, delete;
+ xmlNodePtr list;
xsltAttrElemPtr values;
if ((cur == NULL) || (style == NULL))
* check the children list
*/
list = cur->children;
- delete = NULL;
while (list != NULL) {
if (IS_XSLT_ELEM(list)) {
if (!IS_XSLT_NAME(list, "attribute")) {
xsltGenericError(xsltGenericErrorContext,
"xslt:attribute-set : unexpected child xsl:%s\n",
list->name);
- delete = list;
} else {
#ifdef WITH_XSLT_DEBUG_ATTRIBUTES
xsltGenericDebug(xsltGenericDebugContext,
} else {
xsltGenericError(xsltGenericErrorContext,
"xslt:attribute-set : unexpected child %s\n", list->name);
- delete = list;
}
list = list->next;
}
break;
default:
XP_ERROR(XPATH_INVALID_ARITY);
- return;
}
if (xsltFormatNumberConversion(formatValues,
* Daniel.Veillard@imag.fr
*/
+#include <libxml/xmlversion.h>
+#include <libxslt/xsltconfig.h>
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#include <libxml/xmlversion.h>
+#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
#include <libxml/xmlmemory.h>
#include <libxml/debugXML.h>
#include <libxml/HTMLtree.h>
#ifdef LIBXML_XINCLUDE_ENABLED
#include <libxml/xinclude.h>
#endif
+#ifdef LIBXML_CATALOG_ENABLED
+#include <libxml/catalog.h>
+#endif
#include <libxslt/xslt.h>
#include <libxslt/xsltInternals.h>
#include <libxslt/transform.h>
printf(" --param name value : pass a (parameter,value) pair\n");
printf(" --nonet refuse to fetch DTDs or entities over network\n");
printf(" --warnnet warn against fetching over the network\n");
+#ifdef LIBXML_CATALOG_ENABLED
+ printf(" --catalogs : use the catalogs from $SGML_CATALOG_FILES\n");
+#endif
}
int
(!strcmp(argv[i], "--nonet"))) {
xmlSetExternalEntityLoader(xsltNoNetExternalEntityLoader);
nonet = 1;
+#ifdef LIBXML_CATALOG_ENABLED
+ } else if ((!strcmp(argv[i], "-catalogs")) ||
+ (!strcmp(argv[i], "--catalogs"))) {
+ const char *catalogs;
+
+ catalogs = getenv("SGML_CATALOG_FILES");
+ if (catalogs == NULL) {
+ fprintf(stderr, "Variable $SGML_CATALOG_FILES not set\n");
+ } else {
+ xmlLoadCatalogs(catalogs);
+ }
+#endif
#ifdef LIBXML_XINCLUDE_ENABLED
} else if ((!strcmp(argv[i], "-xinclude")) ||
(!strcmp(argv[i], "--xinclude"))) {