diff --git a/ChangeLog b/ChangeLog index dca713e9..52754c1d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Oct 30 15:25:19 CET 2001 Daniel Veillard + + * configure.in libxslt/xsltwin32config.h: preparing 1.0.6 + * libexslt/date.c: applied patch from Bruce Miller + * doc/*: updated and rebuilt the docs + Fri Oct 26 14:12:14 CEST 2001 Daniel Veillard * win32/dsp/libexslt_a.dsp win32/dsp/libexslt_so.dsp diff --git a/configure.in b/configure.in index 270ed1af..3b4d86fd 100644 --- a/configure.in +++ b/configure.in @@ -6,12 +6,12 @@ dnl libexslt is an extension dnl LIBXSLT_MAJOR_VERSION=1 LIBXSLT_MINOR_VERSION=0 -LIBXSLT_MICRO_VERSION=5 +LIBXSLT_MICRO_VERSION=6 PACKAGE=libxslt LIBEXSLT_MAJOR_VERSION=0 -LIBEXSLT_MINOR_VERSION=5 +LIBEXSLT_MINOR_VERSION=6 LIBEXSLT_MICRO_VERSION=0 -LIBXML_REQUIRED_VERSION=2.4.6 +LIBXML_REQUIRED_VERSION=2.4.7 LIBXSLT_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION.$LIBXSLT_MICRO_VERSION diff --git a/doc/html/libxslt-attributes.html b/doc/html/libxslt-attributes.html index 073cf3cb..f9b6aa54 100644 --- a/doc/html/libxslt-attributes.html +++ b/doc/html/libxslt-attributes.html @@ -123,7 +123,7 @@ NAME="LIBXSLT-ATTRIBUTES" >

Name

Synopsis

Description

Details



Name

Synopsis

Description

Details











Name

Synopsis

Description

Details








Name

Synopsis

Description

Details





Name

Synopsis

Description

Details






Name

Synopsis

Description

Details


Name

Synopsis

Description

Details










Name

Synopsis

Description

Details









Name

Synopsis

Description

Details





























Name

Synopsis

Description

Details















XSLT_NAMESPACE -extern int xsltMaxDepth; -extern const char *xsltEngineVersion; -extern const int xsltLibxsltVersion; -extern const int xsltLibxmlVersion; void xsltCleanupGlobals

Description

Details





xsltMaxDepth

extern int xsltMaxDepth;

This value is used to detect templates loops


xsltEngineVersion

extern const char *xsltEngineVersion;

The version string for libxslt


xsltLibxsltVersion

extern const int xsltLibxsltVersion;

The version of libxslt compiled


xsltLibxmlVersion

extern const int xsltLibxmlVersion;

The version of libxml libxslt was compiled against


Name

Synopsis

Description

Details







































Name

Synopsis

#define TODOXSLT_TODO #define STRANGEXSLT_STRANGE #define

Description

Details

TODO

XSLT_TODO

#define     TODO
#define XSLT_TODO

macro to flag unimplemented blocks


STRANGE

XSLT_STRANGE

#define     STRANGE
#define XSLT_STRANGE

macro to flag that a problem was detected internally




















CVS only : check the Changelog file for a really accurate description

+

1.0.6: Oct 30 2001

+
    +
  • bug fixes on number formatting (Thomas), date/time functions (Bruce + Miller)
  • +
  • update of the Windows Makefiles (Igor)
  • +
  • fixed DOCTYPE generation rules for HTML output (me)
  • +

1.0.5: Oct 10 2001

  • some portability fixes, including Windows makefile updates from diff --git a/doc/xslt.html b/doc/xslt.html index 52c4b81d..9d043ba4 100644 --- a/doc/xslt.html +++ b/doc/xslt.html @@ -195,6 +195,14 @@ platform, get in touch with me to upload the package. I will keep them in the href="http://cvs.gnome.org/lxr/source/libxslt/ChangeLog">Changelog file for a really accurate description +

    1.0.6: Oct 30 2001

    +
      +
    • bug fixes on number formatting (Thomas), date/time functions (Bruce + Miller)
    • +
    • update of the Windows Makefiles (Igor)
    • +
    • fixed DOCTYPE generation rules for HTML output (me)
    • +
    +

    1.0.5: Oct 10 2001

    • some portability fixes, including Windows makefile updates from diff --git a/libexslt/date.c b/libexslt/date.c index 81d4b41f..b5ea9532 100644 --- a/libexslt/date.c +++ b/libexslt/date.c @@ -16,6 +16,7 @@ */ #include +#include #ifdef WIN32 #include @@ -703,6 +704,7 @@ exsltDateParse (const xmlChar *dateTime) { /* is it an xs:gDay? */ if (*cur == '-') { + ++cur; ret = _exsltDateParseGDay(dt, &cur); if (ret != 0) goto error; @@ -1155,7 +1157,8 @@ exsltDateMonthInYear (const xmlChar *dateTime) { */ static const xmlChar * exsltDateMonthName (const xmlChar *dateTime) { - static const xmlChar monthNames[12][10] = { + static const xmlChar monthNames[13][10] = { + { 0 }, { 'J', 'a', 'n', 'u', 'a', 'r', 'y', 0 }, { 'F', 'e', 'b', 'r', 'u', 'a', 'r', 'y', 0 }, { 'M', 'a', 'r', 'c', 'h', 0 }, @@ -1171,8 +1174,9 @@ exsltDateMonthName (const xmlChar *dateTime) { }; int month; month = exsltDateMonthInYear(dateTime); - - return monthNames[month - 1]; + if (!VALID_MONTH(month)) + month = 0; + return monthNames[month]; } /** @@ -1200,7 +1204,8 @@ exsltDateMonthName (const xmlChar *dateTime) { */ static const xmlChar * exsltDateMonthAbbreviation (const xmlChar *dateTime) { - static const xmlChar monthAbbreviations[12][4] = { + static const xmlChar monthAbbreviations[13][4] = { + { 0 }, { 'J', 'a', 'n', 0 }, { 'F', 'e', 'b', 0 }, { 'M', 'a', 'r', 0 }, @@ -1216,8 +1221,9 @@ exsltDateMonthAbbreviation (const xmlChar *dateTime) { }; int month; month = exsltDateMonthInYear(dateTime); - - return monthAbbreviations[month - 1]; + if(!VALID_MONTH(month)) + month = 0; + return monthAbbreviations[month]; } /** @@ -1511,8 +1517,7 @@ exsltDateDayInWeek (const xmlChar *dateTime) { dt = exsltDateParse(dateTime); if (dt == NULL) return xmlXPathNAN; - if ((dt->type != XS_DATETIME) && (dt->type != XS_DATE) && - (dt->type != XS_GMONTHDAY) && (dt->type != XS_GDAY)) { + if ((dt->type != XS_DATETIME) && (dt->type != XS_DATE)) { exsltDateFreeDate(dt); return xmlXPathNAN; } @@ -1548,7 +1553,8 @@ exsltDateDayInWeek (const xmlChar *dateTime) { */ static const xmlChar * exsltDateDayName (const xmlChar *dateTime) { - static const xmlChar dayNames[7][10] = { + static const xmlChar dayNames[8][10] = { + { 0 }, { 'S', 'u', 'n', 'd', 'a', 'y', 0 }, { 'M', 'o', 'n', 'd', 'a', 'y', 0 }, { 'T', 'u', 'e', 's', 'd', 'a', 'y', 0 }, @@ -1559,8 +1565,9 @@ exsltDateDayName (const xmlChar *dateTime) { }; int day; day = exsltDateDayInWeek(dateTime); - - return dayNames[day - 1]; + if((day < 1) || (day > 7)) + day = 0; + return dayNames[day]; } /** @@ -1585,7 +1592,8 @@ exsltDateDayName (const xmlChar *dateTime) { */ static const xmlChar * exsltDateDayAbbreviation (const xmlChar *dateTime) { - static const xmlChar dayAbbreviations[7][4] = { + static const xmlChar dayAbbreviations[8][4] = { + { 0 }, { 'S', 'u', 'n', 0 }, { 'M', 'o', 'n', 0 }, { 'T', 'u', 'e', 0 }, @@ -1596,8 +1604,9 @@ exsltDateDayAbbreviation (const xmlChar *dateTime) { }; int day; day = exsltDateDayInWeek(dateTime); - - return dayAbbreviations[day - 1]; + if((day < 1) || (day > 7)) + day = 0; + return dayAbbreviations[day]; } /** @@ -1633,8 +1642,7 @@ exsltDateHourInDay (const xmlChar *dateTime) { dt = exsltDateParse(dateTime); if (dt == NULL) return xmlXPathNAN; - if ((dt->type != XS_DATETIME) && (dt->type != XS_DATE) && - (dt->type != XS_GMONTHDAY) && (dt->type != XS_GDAY)) { + if ((dt->type != XS_DATETIME) && (dt->type != XS_TIME)) { exsltDateFreeDate(dt); return xmlXPathNAN; } @@ -1679,8 +1687,7 @@ exsltDateMinuteInHour (const xmlChar *dateTime) { dt = exsltDateParse(dateTime); if (dt == NULL) return xmlXPathNAN; - if ((dt->type != XS_DATETIME) && (dt->type != XS_DATE) && - (dt->type != XS_GMONTHDAY) && (dt->type != XS_GDAY)) { + if ((dt->type != XS_DATETIME) && (dt->type != XS_TIME)) { exsltDateFreeDate(dt); return xmlXPathNAN; } @@ -1725,8 +1732,7 @@ exsltDateSecondInMinute (const xmlChar *dateTime) { dt = exsltDateParse(dateTime); if (dt == NULL) return xmlXPathNAN; - if ((dt->type != XS_DATETIME) && (dt->type != XS_DATE) && - (dt->type != XS_GMONTHDAY) && (dt->type != XS_GDAY)) { + if ((dt->type != XS_DATETIME) && (dt->type != XS_TIME)) { exsltDateFreeDate(dt); return xmlXPathNAN; } diff --git a/libxslt/xsltwin32config.h b/libxslt/xsltwin32config.h index e9f6f14f..3166d08d 100644 --- a/libxslt/xsltwin32config.h +++ b/libxslt/xsltwin32config.h @@ -21,21 +21,21 @@ extern "C" { * * the version string like "1.2.3" */ -#define LIBXSLT_DOTTED_VERSION "1.0.5" +#define LIBXSLT_DOTTED_VERSION "1.0.6" /** * LIBXSLT_VERSION: * * the version number: 1.2.3 value is 1002003 */ -#define LIBXSLT_VERSION 10005 +#define LIBXSLT_VERSION 10006 /** * LIBXSLT_VERSION_STRING: * * the version number string, 1.2.3 value is "1002003" */ -#define LIBXSLT_VERSION_STRING "10005" +#define LIBXSLT_VERSION_STRING "10006" /** * WITH_XSLT_DEBUG: