platform/upstream/libxslt.git
4 months agoImported Upstream version 1.1.39 upstream upstream/1.1.39
TizenOpenSource [Thu, 7 Dec 2023 04:44:36 +0000 (13:44 +0900)]
Imported Upstream version 1.1.39

19 months agoImported Upstream version 1.1.37 upstream/1.1.37
DongHun Kwak [Tue, 13 Sep 2022 02:22:42 +0000 (11:22 +0900)]
Imported Upstream version 1.1.37

19 months agoImported Upstream version 1.1.36 upstream/1.1.36
DongHun Kwak [Tue, 13 Sep 2022 02:22:24 +0000 (11:22 +0900)]
Imported Upstream version 1.1.36

19 months agoImported Upstream version 1.1.35 upstream/1.1.35
DongHun Kwak [Tue, 13 Sep 2022 02:22:02 +0000 (11:22 +0900)]
Imported Upstream version 1.1.35

4 years agoImported Upstream version 1.1.34 upstream/1.1.34
DongHun Kwak [Tue, 12 Nov 2019 06:20:07 +0000 (15:20 +0900)]
Imported Upstream version 1.1.34

4 years agoImported Upstream version 1.1.33 upstream/1.1.33
DongHun Kwak [Tue, 12 Nov 2019 06:20:00 +0000 (15:20 +0900)]
Imported Upstream version 1.1.33

6 years agoImported Upstream version 1.1.32 90/162590/1 upstream/1.1.32
DongHun Kwak [Mon, 4 Dec 2017 09:49:03 +0000 (18:49 +0900)]
Imported Upstream version 1.1.32

Change-Id: I03b39e92b2b7898e9a34a1e240722003e7d51cd8
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 1.1.31 78/156078/1 upstream/1.1.31
DongHun Kwak [Tue, 17 Oct 2017 05:53:30 +0000 (14:53 +0900)]
Imported Upstream version 1.1.31

Change-Id: I5c79882d43bcfea6c94944bed9bdddb76c516afd
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 1.1.31_rc2 77/156077/1 upstream/1.1.31_rc2
DongHun Kwak [Tue, 17 Oct 2017 05:52:39 +0000 (14:52 +0900)]
Imported Upstream version 1.1.31_rc2

Change-Id: I548e28bbcc52546fcda0ac91a7f0042e8dce7dd6
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 1.1.31_rc1 76/156076/1 upstream/1.1.31_rc1
DongHun Kwak [Tue, 17 Oct 2017 05:52:13 +0000 (14:52 +0900)]
Imported Upstream version 1.1.31_rc1

Change-Id: I18a4b3672d7e46c1ead10d746dbdddcc30f298b7
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 1.1.30 75/156075/1 upstream/1.1.30
DongHun Kwak [Tue, 17 Oct 2017 05:51:45 +0000 (14:51 +0900)]
Imported Upstream version 1.1.30

Change-Id: Ifea6a148a28bd1c10ea97b65d414a872d0efd827
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 1.1.30_rc2 74/156074/1 upstream/1.1.30_rc2
DongHun Kwak [Tue, 17 Oct 2017 05:51:23 +0000 (14:51 +0900)]
Imported Upstream version 1.1.30_rc2

Change-Id: I7163f1e8d20d9963a92dea041decb566792ffad1
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 1.1.30_rc1 73/156073/1 upstream/1.1.30_rc1
DongHun Kwak [Tue, 17 Oct 2017 05:50:30 +0000 (14:50 +0900)]
Imported Upstream version 1.1.30_rc1

Change-Id: Ie087e3508369ac612459f31961addc691f2302c1
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
7 years agoImported Upstream version 1.1.29 77/75877/1 upstream/1.1.29
DongHun Kwak [Wed, 22 Jun 2016 05:10:16 +0000 (14:10 +0900)]
Imported Upstream version 1.1.29

Change-Id: I7d894ba27f8f8e886dbcece3bb3df8e69059cae9
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
11 years agoRelease of libxslt 1.1.28 v1.1.28
Daniel Veillard [Wed, 21 Nov 2012 07:22:59 +0000 (15:22 +0800)]
Release of libxslt 1.1.28

* configure.in: updated
* doc/libxslt-api.xml doc/libxslt-refs.xml libxslt/libxslt.syms
  libxslt/xsltwin32config.h win32/libxslt.def.src doc/*.html:
  regenerated

11 years agoRemove xsltTransStorageAdd and xsltTransStorageRemove from symbols.xml
Daniel Veillard [Wed, 21 Nov 2012 07:20:43 +0000 (15:20 +0800)]
Remove xsltTransStorageAdd and xsltTransStorageRemove from symbols.xml

Addition to the removal from the header
31312989ab25faf81f9aa9e41d17e0f8f4fe21e7

11 years agoFix python build by using libxsltmod_la_CPPFLAGS instead of AM_CPPFLAGS
Alexandre Rostovtsev [Sat, 22 Sep 2012 21:44:32 +0000 (17:44 -0400)]
Fix python build by using libxsltmod_la_CPPFLAGS instead of AM_CPPFLAGS

Commit a2cd8a03 broke the --with-python build by moving includes from
INCLUDES to AM_CPPFLAGS. AM_CPPFLAGS gets ignored when a target-specific
*_CPPFLAGS variable exists, but at least some automake versions
automatically add "libxsltmod_la_CPPFLAGS = -shared" to python/Makefile.in

https://bugzilla.gnome.org/show_bug.cgi?id=684637

11 years agoconfigure should be more careful with linker script
Igor Pashev [Wed, 21 Nov 2012 06:04:29 +0000 (14:04 +0800)]
configure should be more careful with linker script

For https://bugzilla.gnome.org/show_bug.cgi?id=685626

it would assume the system linker for extracting the linker
script options, even if GNU ld is in use. Which breaks on Solaris.

11 years agoautogen.sh cleanup
Daniel Richard [Wed, 21 Nov 2012 03:34:42 +0000 (11:34 +0800)]
autogen.sh cleanup

This patch fixes minor issues in the autogen.sh script:

* Don't print "I am going to run ..." if NOCONFIGURE is set

* Print said message with $srcdir path

* Print said message once, not twice

* Print "Running ..." message once, not twice, and use quoting

11 years agoconsistent use of xslt processor
Roumen Petrov [Wed, 21 Nov 2012 03:29:22 +0000 (11:29 +0800)]
consistent use of xslt processor

Currently doc/Makefile.am use just build xslt processor, binary
detected from configure or just directly call command xsltproc.
This patch unify use to binary detected from configure script.

11 years agoadd gcrypt library in LIBADD, not LDFLAGS, as recommended
Roumen Petrov [Wed, 8 Aug 2012 22:05:29 +0000 (01:05 +0300)]
add gcrypt library in LIBADD, not LDFLAGS, as recommended

11 years agoFix generate-id() to avoid generating the same ID
Stewart Brodie [Wed, 21 Nov 2012 03:11:46 +0000 (11:11 +0800)]
Fix generate-id() to avoid generating the same ID

For nodes from different documents, especially for the document
node itself which would always get "idp0" as a result.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=688171

11 years agoRevert "Cleanup libxslt test run outside of srcdir"
Daniel Veillard [Wed, 21 Nov 2012 03:08:02 +0000 (11:08 +0800)]
Revert "Cleanup libxslt test run outside of srcdir"

This reverts commit c159f4e6f19ffb32d89e4b3e094fd27a2f82b9ac.
As make check was exhibiting various added failures as a result.

11 years agoCleanup libxslt test run outside of srcdir
Petr Sumbera [Thu, 25 Oct 2012 13:44:25 +0000 (21:44 +0800)]
Cleanup libxslt test run outside of srcdir

When I configure/build libxslt outside of sources and then run libxslt
tests there are some false positives related to using absolute path
instead of relative.

11 years agoAdd object files in tests/plugins to .gitignore
Nick Wellnhofer [Sun, 21 Oct 2012 23:12:15 +0000 (01:12 +0200)]
Add object files in tests/plugins to .gitignore

11 years agoFix crash with empty xsl:key/@match attribute
Nick Wellnhofer [Sun, 21 Oct 2012 17:02:25 +0000 (19:02 +0200)]
Fix crash with empty xsl:key/@match attribute

See https://bugzilla.gnome.org/show_bug.cgi?id=685328

Also improve some xsl:key error messages.

11 years agoCrash when passing an uninitialized variable to document()
Nick Wellnhofer [Wed, 10 Oct 2012 10:09:36 +0000 (12:09 +0200)]
Crash when passing an uninitialized variable to document()

https://bugzilla.gnome.org/show_bug.cgi?id=685330

Missing check for NULL

11 years agoAdd missing test docs to EXTRA_DIST
Nick Wellnhofer [Wed, 10 Oct 2012 10:12:48 +0000 (12:12 +0200)]
Add missing test docs to EXTRA_DIST

11 years agoFix regression: Default namespace not correctly used
Nick Wellnhofer [Fri, 28 Sep 2012 19:04:39 +0000 (21:04 +0200)]
Fix regression: Default namespace not correctly used

https://bugzilla.gnome.org/show_bug.cgi?id=684564

11 years agoFix error on bug-165 regression test
Daniel Veillard [Wed, 19 Sep 2012 08:59:58 +0000 (16:59 +0800)]
Fix error on bug-165 regression test

Missing error file from the distribution due to a typo

11 years agoRemove xsltTransStorageAdd and xsltTransStorageRemove
Daniel Veillard [Wed, 12 Sep 2012 13:51:42 +0000 (21:51 +0800)]
Remove xsltTransStorageAdd and xsltTransStorageRemove

From the header as they were never implemented

11 years agoRelease of libxslt-1.1.27
Daniel Veillard [Wed, 12 Sep 2012 06:37:09 +0000 (14:37 +0800)]
Release of libxslt-1.1.27

* configure.in doc/symbols.xml doc/xslt.html: updated for the release
* NEWS config.h.in doc/* */*.syms : regenerated

11 years agoBig space and tabs cleanup
Daniel Veillard [Wed, 12 Sep 2012 06:07:24 +0000 (14:07 +0800)]
Big space and tabs cleanup

Remove spaces followed by tabs, and space and tabs at the end of lines

11 years agoFix authors list
Daniel Veillard [Wed, 12 Sep 2012 05:51:12 +0000 (13:51 +0800)]
Fix authors list

11 years agoAdd the saxon:systemId extension
Mike Hommey [Wed, 12 Sep 2012 03:07:56 +0000 (11:07 +0800)]
Add the saxon:systemId extension

For https://bugzilla.gnome.org/show_bug.cgi?id=519926

Both Xalan and Saxon have a systemId function (in their respective
namespaces) to provide the URI of the file that is being transformed.
It would be nice to have that function in libxslt1.1 as well, because
then DocBook could use it[0].

[0] See line 250 et seq in
/usr/share/xml/docbook/stylesheet/nwalsh/common/stripns.xsl

11 years agoAdd an append mode to document output
Daniel Veillard [Sat, 8 Sep 2012 12:45:24 +0000 (20:45 +0800)]
Add an append mode to document output

It adds the append functionality to <redirect:write> element
equivalent of ESXLT:document which opens the local file in
append mode and remove the XML Declaration, allowing to potentially
stack multiple chunks

11 years agoCleanups some of the test makefiles
Daniel Richard [Fri, 7 Sep 2012 08:11:07 +0000 (16:11 +0800)]
Cleanups some of the test makefiles

* Added missing $(srcdir)/ qualification to some "[ -s ... ]"
  stderr-output reference file checks

* When printing log output for failed tests, quote the log variable, so
  that diff output is formatted the way it should be (with newlines!)
and
  is not all collapsed into one line

* Updated tests/REC/test-7.1.1-3.out with current output to get rid of a
  spurious test failure

11 years agoReport errors on variable use in key
Daniel Veillard [Fri, 7 Sep 2012 06:27:16 +0000 (14:27 +0800)]
Report errors on variable use in key

For https://bugzilla.gnome.org/show_bug.cgi?id=680938

Variables are forbidden for match or use values of keys
* libxslt/xsltutils.c libxslt/xsltutils.h: allows to add flags
  to XPath expression compilation
* libxslt/keys.c: add the XML_XPATH_NOVAR if defined (recent libxml2)
* libxslt/pattern.c: add a missing xpath.h include to make sure the
  defintiion is found there too

11 years agoThe XSLT namespace string is a constant one
Daniel Veillard [Fri, 7 Sep 2012 04:23:14 +0000 (12:23 +0800)]
The XSLT namespace string is a constant one

Raised by Phil Shafer <phil@juniper.net>

11 years agoFix handling of names in xsl:attribute
Nick Wellnhofer [Thu, 16 Aug 2012 00:18:31 +0000 (02:18 +0200)]
Fix handling of names in xsl:attribute

A prefix of 'xmlns' is actually allowed. It should simply be ignored
if a namespace is given. Without a namespace the lookup by prefix will
fail anyway.

What the spec doesn't allow is an attribute name of 'xmlns' which will
now be rejected.

11 years agoReserved namespaces in xsl:element and xsl:attribute
Nick Wellnhofer [Wed, 15 Aug 2012 21:50:22 +0000 (23:50 +0200)]
Reserved namespaces in xsl:element and xsl:attribute

For https://bugzilla.gnome.org/show_bug.cgi?id=587360

Correct handling of 'xml' and 'xmlns' namespaces in xsl:element and
xsl:attribute.

11 years agoAdd new tests to EXTRA_DIST
Nick Wellnhofer [Wed, 15 Aug 2012 21:10:16 +0000 (23:10 +0200)]
Add new tests to EXTRA_DIST

11 years agoTest for bug #680920
Nick Wellnhofer [Tue, 31 Jul 2012 21:32:05 +0000 (23:32 +0200)]
Test for bug #680920

Add test cases for the EXSLT func bug

11 years agoNull-terminate result string of cry:rc4_decrypt
Nick Wellnhofer [Tue, 31 Jul 2012 19:27:51 +0000 (21:27 +0200)]
Null-terminate result string of cry:rc4_decrypt

For https://bugzilla.gnome.org/show_bug.cgi?id=675917

The string wasn't 0 terminated

11 years agofix regresson in Various "make distcheck" and other fixes
Roumen Petrov [Fri, 10 Aug 2012 22:07:02 +0000 (01:07 +0300)]
fix regresson in Various "make distcheck" and other fixes

The patch 'Various "make distcheck" and other fixes' removes a line
in configure EXTRA_LIBS=... LIBXML_LIBS...
  -EXTRA_LIBS="$EXTRA_LIBS $LIBXML_LIBS $M_LIBS"

This is not save as libxslt/Makefile.am define only
|EXTRA_LIBS|  as dependency:
|libxslt_la_LIBADD= $(EXTRA_LIBS)|

If platform does not support unresolved dependencies library cannot be linked.
Even with support regression tests fail in python test due unresolved "xml"-symbols .

11 years agoEXSLT date normalization fix
James Muscat [Tue, 4 Sep 2012 12:18:04 +0000 (20:18 +0800)]
EXSLT date normalization fix

https://bugzilla.gnome.org/show_bug.cgi?id=626855

Dates with timezones but no time components are not normalized correctly
Using xsltproc v1.1.26:

$ xsltproc --version
Using libxml 20706, libxslt 10126 and libexslt 815
xsltproc was compiled against libxml 20704, libxslt 10126 and libexslt
815
libxslt 10126 was compiled against libxml 20704
libexslt 815 was compiled against libxml 20704

Dates that have timezone offsets specified but no time components, for
example
"1970-01-01+01:00", are not normalized correctly; the timezone part is
truncated:

date:seconds("1970-01-01") = 0
date:seconds("1970-01-01+01:00") = 0 (not -3600 as expected)

Alters the conditions under which exsltDateNormalize() returns
without normalizing, and adds test cases demonstrating the new behaviour.

11 years agoExit after compilation of invalid func:result
Nick Wellnhofer [Wed, 15 Aug 2012 19:09:19 +0000 (21:09 +0200)]
Exit after compilation of invalid func:result

Second part of bug #680920.

11 years agoFix for EXSLT func:function
Nick Wellnhofer [Tue, 4 Sep 2012 06:53:14 +0000 (14:53 +0800)]
Fix for EXSLT func:function

For https://bugzilla.gnome.org/show_bug.cgi?id=680920

If the first child of a func:function template is xslt:text, it will be
removed by xsltParseTemplateContent. So xsltParseTemplateContent should
be called before setting func->content to the first child.

11 years agoRewrite EXSLT string:replace to be conformant
Nick Wellnhofer [Tue, 4 Sep 2012 06:38:06 +0000 (14:38 +0800)]
Rewrite EXSLT string:replace to be conformant

For https://bugzilla.gnome.org/show_bug.cgi?id=569703

The libexslt implementation of str:replace fails to conform to its
specification on several counts:

a) the current version returns a string; it's supposed to
   return a nodeset.

b) the current version treats the replacements as strings;
   it's supposed to treat them as nodes.

c) the current version can modify replacement text; it's
   supposed to only modify text from the original string.

d) the current version ignores the requirement to perform
   substitutions in descending order of search string length.

Steps to reproduce:
a) the returning of a string rather than a nodeset can be seen
   by simply inspecting the code.

b) the code explicity converts replacement nodes to strings;
   this can be seen by inspection.
d) the failure to perform substitutions in descending order
   of search string length can be seen in the lack of any
   sorting in the source code.

c) the problem of modifying text not belonging to the original
   string can be seen in the following stylesheet, which can
   be simply applied to itself to produce output.

<xsl:stylesheet version="1.0"
    extension-element-prefixes="str exsl"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:exsl="http://exslt.org/common"
    xmlns:str="http://exslt.org/strings"
    >
<xsl:variable name="Text">
    Price is $1.10
</xsl:variable>

<xsl:template match="/">
    <xsl:apply-templates select="exsl:node-set($Text)/text()"/>
</xsl:template>
<xsl:template match="text()">
   <xsl:variable name="Replace">
        <FromXml>
            <from>$</from>
            <from>\</from>
        </FromXml>
        <ToTex>
            <to>\$</to>
            <to>$\backslash$</to>
        </ToTex>
    </xsl:variable>
    <xsl:value-of

select="str:replace(.,exsl:node-set($Replace)/FromXml/from,exsl:node-set($Replace)/ToTex/to)"/>
</xsl:template>
</xsl:stylesheet>

Actual results:
The output is:

<?xml version="1.0"?>

    Price is $\backslash$$1.10

Expected results:
The output should be:
<?xml version="1.0"?>

    Price is \$1.10

Does this happen every time?
yes.

Other information:
str:replace specification is at:

http://www.exslt.org/str/functions/replace/str.replace.html

11 years agoRemove .cvsignore files which are not needed anymore
Daniel Veillard [Tue, 4 Sep 2012 06:28:28 +0000 (14:28 +0800)]
Remove .cvsignore files which are not needed anymore

11 years agoAvoid a heap use after free error
Chris Evans [Mon, 3 Sep 2012 10:16:44 +0000 (18:16 +0800)]
Avoid a heap use after free error

For https://code.google.com/p/chromium/issues/detail?id=140368

11 years agoFix a dictionary string usage
Chris Evans [Mon, 3 Sep 2012 07:50:22 +0000 (15:50 +0800)]
Fix a dictionary string usage

Raised in chromium, but also affecting xsltproc
Also updated AUTHORS to list Chris and other contributors

11 years agoOutput should not include extraneous newlines when indent is off
Laurence Rowe [Thu, 16 Jun 2011 17:44:06 +0000 (18:44 +0100)]
Output should not include extraneous newlines when indent is off

Hence matching behaviour of xmlSaveOption XML_SAVE_FORMAT off.
This affects only one of the regression tests

11 years agoxincludestyle wasn't protected with LIBXML_XINCLUDE_ENABLED
Michael Bonfils [Thu, 16 Aug 2012 09:46:29 +0000 (17:46 +0800)]
xincludestyle wasn't protected with LIBXML_XINCLUDE_ENABLED

Leading to possible compilation issue if this isn't in libxml2

11 years agodocument('') fails to return stylesheets parsed from memory
Jason Viers [Thu, 16 Aug 2012 09:41:00 +0000 (17:41 +0800)]
document('') fails to return stylesheets parsed from memory

If an XSL stylesheet is from memory (e.g. xmlParseMemory), then xpath
expressions referencing "document('')" will never return a match.

When getting down into it, I understand the logic "document() is resolved
relative to the XSL's location, reading from memory has no location, therefore
buzz off", but the XSL spec seems to address this:

http://www.w3.org/TR/xslt#document
"Note that a zero-length URI reference is a reference to the document relative
to which the URI reference is being resolved; thus document("") refers to the
root node of the stylesheet; the tree representation of the stylesheet is
exactly the same as if the XML document containing the stylesheet was the
initial source document."

The fact that the behavior differs in this case between fromFile & fromMemory
definitely caught me off guard, and IMHO fixing that scenario is worth the
one-off-ness of the fix.

11 years agoPortability fix for testThreads.c
IlyaS [Thu, 16 Aug 2012 09:27:15 +0000 (17:27 +0800)]
Portability fix for testThreads.c

Similar to the one in libxml2, don't assume threads id are scalars

11 years agoFreeBSD portability fixes
Pedro F. Giffuni [Thu, 16 Aug 2012 09:16:05 +0000 (17:16 +0800)]
FreeBSD portability fixes

Around behaviour and compile flags for localtime and EXSLT date support

11 years agoxsltproc should return an error code if xinclude fails
Malcolm Purvis [Thu, 16 Aug 2012 09:08:31 +0000 (17:08 +0800)]
xsltproc should return an error code if xinclude fails

When running xsltproc with the --xinclude option and if the included file
contains parse errors, then xsltproc exits with a success return code (0)
rather than an error code.  This is despite the fact that parser error
messages are printed out.
* xsltproc/xsltproc.c: check xinclude processing function return code,
  fail with error 6 if it went wrong.

11 years agocheck for gmtime - on mingw* hosts will enable date-time function
Roumen Petrov [Sun, 26 Feb 2012 16:36:27 +0000 (18:36 +0200)]
check for gmtime - on mingw* hosts will enable date-time function

11 years agouse only native crypto-API for mingw* hosts
Roumen Petrov [Sun, 27 May 2012 13:53:51 +0000 (16:53 +0300)]
use only native crypto-API for mingw* hosts

11 years agoForwards-compatible processing of unknown top level elements
Nick Wellnhofer [Wed, 15 Aug 2012 20:40:05 +0000 (22:40 +0200)]
Forwards-compatible processing of unknown top level elements

Bug #677901

11 years agoFix system-property with unknown namespace
Nick Wellnhofer [Wed, 15 Aug 2012 21:06:14 +0000 (23:06 +0200)]
Fix system-property with unknown namespace

The empty string should be returned, see bug #631803.

11 years agoHardening of code checking node types in EXSLT
Daniel Veillard [Thu, 16 Aug 2012 07:51:35 +0000 (15:51 +0800)]
Hardening of code checking node types in EXSLT

11 years agoVarious "make distcheck" and other fixes
Daniel Richard G [Thu, 9 Aug 2012 11:46:03 +0000 (19:46 +0800)]
Various "make distcheck" and other fixes

Makefile.am:

* Use $(VAR), not @VAR@, as the former is the correct form for AC_SUBST'ed
   variables in Makefile.am files

* Touch these *.xml/*.syms files in the "dist-hook" target to prevent them
   from being regenerated, because the "make dist" process in itself
   updates the timestamps of the source files when it copies them into
   $(distdir)

* Add EXTRA_LIBS (-lrt on my system) to xsltConf.sh, as this is a required
   dependency when client applications link against -lxslt

   (note that the definition of EXTRA_LIBS has been changed; see below)

* Removed MAKEFLAGS+=--silent bits, as this is not compatible with non-GNU
   Make programs

autogen.sh:

* Add --warnings=all options to automake and autoconf invocations, to
   better catch potential problems (most of which I've fixed in this patch)

configure.in:

* Replaced obsolete macros with their current equivalents; for reference,
   see

     http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html

   (I removed AC_ISC_POSIX outright because the doc states it is no longer
   useful)

* test(1) uses "=" as an operator, not "=="

* Fixed quoting on an AC_LINK_IFELSE() invocation to quell Autoconf errors

* Don't add redundant libraries to EXTRA_LIBS, because (1) this variable
   already contains LibXSLT's own additional system-library deps, and is
   useful in that form, and (2) the LibXML2 deps are already handled by
   Libtool

* Don't delete files in srcdir, and don't create the symlink to
   "Copyright" there either

   (I don't understand why this is being symlinked in the first place...)

doc/Makefile.am:

* Can't use wildcards in EXTRA_DIST, because this breaks dependencies
   (e.g. you can't "make EXSLT/\*.html"), and they only work properly when
   building inside the source tree; these have been replaced with their
   expansions. Other entries have been added here in lieu of the wildcards
   in the dist-hook target, as well as opportunistic use of the $(*PAGES)
   variables.

* Don't define an "all" target, because this steps on Automake's toes; use
   "all-local" instead

* Define and use an "xsltproc" variable to reference an in-tree-built
   version of xsltproc, instead of e.g. $(bindir)/xsltproc

   NOTE: The makefile also uses $(XSLTPROC), which names an external
   instance of the program found at configure time. Some instances of this
   could probably be changed to $(xsltproc) to remove the dependency on an
   existing installed program.

* Qualified various filenames as appropriate with $(srcdir)

* Use $(XMLLINT) consistently instead of $(bindir)/xmllint

* In the "libxslt-api.xml ..." rule, cd into $(srcdir) before invoking
   apibuild.py as this script has to run in srcdir anyway

* In the "clean-local" rule, clear out some additional files to allow
   "make distcheck" to pass

* Eliminated the redundant "maintainer-clean-local" rule

* Added a "distclean-local" rule to clear out the build directory in an
   out-of-source build to allow "make distcheck" to pass

* Added a "check-extra-dist" target to make it easier to check that
   EXTRA_DIST isn't missing anything

* Use $(MKDIR_P), not $(mkinstalldirs), as the latter name is obsolete

* Use $(VAR) instead of @VAR@

* The "dist-hook" target didn't work (if any generated files were in
   builddir and not in srcdir), and is no longer needed thanks to the
   comprehensive EXTRA_DIST variable

* Added an "uninstall-local" rule to allow "make distcheck" to pass

* Updated the .PHONY target list, removed non-existent targets

doc/symbols.xml:

* Needed to add this bit to make the generation scripts shut up

libexslt/Makefile.am:

* AM_CPPFLAGS should be used instead of INCLUDES, as the latter is an
   obsolete name

* Moved $(LIBXML_CFLAGS) to AM_CFLAGS, to segregate CFLAGS from CPPFLAGS

   (Note that $(CFLAGS) need not be added to AM_CFLAGS, because Automake
   already references both in the build rules)

* Use $(VAR) instead of @VAR@

libxslt.pc.in:

* Add EXTRA_LIBS (-lrt on my system), as this is a required dependency
   when client applications link against -lxslt

libxslt/Makefile.am:

* AM_CPPFLAGS should be used instead of INCLUDES, as the latter is an
   obsolete name

* Moved $(LIBXML_CFLAGS) to AM_CFLAGS, to segregate CFLAGS from CPPFLAGS

* Use $(VAR) instead of @VAR@, $(MKDIR_P) instead of $(mkinstalldirs)

* Use $(MKDIR_P), not $(mkinstalldirs), as the latter name is obsolete

libxslt/xsltutils.c:

* Some systems don't know about CLOCK_MONOTONIC; older Solaris knows about
   CLOCK_HIGHRES. Some systems, alas, have no usable alternative to
   CLOCK_REALTIME.

python/Makefile.am:

* AM_CPPFLAGS should be used instead of INCLUDES, as the latter is an
   obsolete name

* Moved $(LIBXML_CFLAGS) to AM_CFLAGS, to segregate CFLAGS from CPPFLAGS

* Because libxslt-py.c is (presumably) supposed to be generated every time
   at build time, don't bundle it in the dist tarball

* Use $(VAR) instead of @VAR@

* libxsltclass.py is a generated file, so it doesn't get qualified with
   $(srcdir)

* Use $(MKDIR_P) instead of (mkinstalldirs)

* Added an uninstall-local rule so that "make distcheck" passes

* Removed the $(srcdir) qualifications in the GENERATED file list, as
   these files may exist in builddir

* In the gen_prog rule, qualify the script invocation with $(srcdir), and
   set the SRCDIR environment variable so that the script can find the
   files it needs when builddir != srcdir

* Don't define an "all" target, as this steps on Automake's toes

python/generator.py:

* Get the source directory from the SRCDIR environment variable, and use
   it appropriately

python/tests/Makefile.am:

* Set CLEANFILES instead of defining a "clean" rule

* Use $(VAR) instead of @VAR@, $(MKDIR_P) instead of $(mkinstalldirs)

tests/*/Makefile.am, tests/exslt/*/Makefile.am:

* Need to clean up .memdump files for "make distcheck" to pass

* Don't define an "all" target, as this steps on Automake's toes

tests/REC/Makefile.am:

* Added two missing *.stand.out files to EXTRA_DIST

tests/XSLTMark/Makefile.am:

* Replaced the GNU-Make-specific %.out bit with a more broadly compatible
   rule

   (the "dummy" bit shuts up Automake)

* Use "$(xsltproc)" instead of "$(top_builddir)/xsltproc/xsltproc"

* Use a less $(MAKE)-heavy invocation in the "tests" target

* Replaced a conflicting "clean" target with CLEANFILES

* Added a dependency on $(xsltproc) to all the test targets

* Added a .PHONY target list

tests/docbook/Makefile.am:

* Ditched the "echo -n" bit, because it wasn't working as advertised

* Create output directories for out-of-source builds

* "$(basename $$i)" is a typo in a makefile

* Don't embed $(srcdir) in $out/$html/$fo/$msg/$xhtml, so that we can
   refer to these files in builddir or srcdir

* Add a trailing "echo" to complete the "echo -n"

* Don't output files unconditionally to srcdir (it may be read-only, for
   starters)

tests/plugins/Makefile.am:

* AM_CPPFLAGS should be used instead of INCLUDES, as the latter is an
   obsolete name

   (Note that the "$(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS)" bit that was here
   can be dropped entirely, because these already appear in
   xmlsoft_org_xslt_testplugin_la_CFLAGS)

* Use noinst_LTLIBRARIES inside the WITH_MODULES conditional instead of
   EXTRA_LTLIBRARIES, as this is cleaner (and disallows building the plugin
   if module support is disabled)

* Need to clean up *.res files for "make distcheck" to pass

* Use the abs_builddir variable conveniently provided to us by Automake
   instead of a GNU Make $(shell ...) construct

xslt-config.in:

* Add EXTRA_LIBS (-lrt on my system), as this is a required dependency
   when client applications link against -lxslt

xsltproc/Makefile.am:

* AM_CPPFLAGS should be used instead of INCLUDES, as the latter is an
   obsolete name

* Moved $(LIBXML_CFLAGS) into AM_CFLAGS

* Use $(VAR) instead of @VAR@

* Need to clean .memdump for "make distcheck" to pass

* Added rules to build lib[e]xslt.la if needed, which allows test
   makefiles to build xsltproc on the fly even if nothing else has been
   built already

* Create .memdump file in the "tests" target, as it's being grepped
   afterward

11 years agoHardening of code checking node types in various entry point
Daniel Veillard [Thu, 9 Aug 2012 08:18:51 +0000 (16:18 +0800)]
Hardening of code checking node types in various entry point

11 years agoCleanup of the pattern compilation code
Daniel Veillard [Thu, 9 Aug 2012 07:31:07 +0000 (15:31 +0800)]
Cleanup of the pattern compilation code

Avoid potential crashes and memory leaks

11 years agoTiny doc improvement
Daniel Veillard [Wed, 8 Aug 2012 08:14:21 +0000 (16:14 +0800)]
Tiny doc improvement

11 years agoFix default template processing on namespace nodes
Daniel Veillard [Wed, 8 Aug 2012 07:31:05 +0000 (15:31 +0800)]
Fix default template processing on namespace nodes

11 years agoFix portability to upcoming libxml2-2.9.0
Daniel Veillard [Wed, 8 Aug 2012 06:21:51 +0000 (14:21 +0800)]
Fix portability to upcoming libxml2-2.9.0

A few place where an output buffer was accessed directly or as
an xmlBuf

11 years agoAdding --system flag support to autogen.sh
Daniel Veillard [Wed, 8 Aug 2012 06:10:08 +0000 (14:10 +0800)]
Adding --system flag support to autogen.sh

11 years agoFix a bug in selecting XSLT elements
Daniel Veillard [Tue, 7 Aug 2012 03:26:43 +0000 (11:26 +0800)]
Fix a bug in selecting XSLT elements

12 years agoCleanup some misplaced spaces and tabs
Daniel Veillard [Thu, 22 Mar 2012 02:35:14 +0000 (10:35 +0800)]
Cleanup some misplaced spaces and tabs

12 years agoAllow per-context override of xsltMaxDepth, introduce xsltMaxVars
Jérôme Carretero [Mon, 19 Mar 2012 07:06:53 +0000 (15:06 +0800)]
Allow per-context override of xsltMaxDepth, introduce xsltMaxVars

We also add a maxTemplateVars parameter

12 years agoFixed bug #616839
Daniel Mustieles [Mon, 19 Mar 2012 20:46:45 +0000 (21:46 +0100)]
Fixed bug #616839

12 years agoautogen: Only check for libtoolize
Colin Walters [Fri, 27 Jan 2012 12:03:00 +0000 (07:03 -0500)]
autogen: Only check for libtoolize

/usr/bin/libtool may not be in all installations.

12 years agoFix some case of pattern parsing errors
Abhishek Arya [Sun, 22 Jan 2012 09:47:50 +0000 (17:47 +0800)]
Fix some case of pattern parsing errors

We could accidentally hit an off by one string array access
due to improper loop exit when parsing patterns

12 years agoAugment list of ignred files
Daniel Veillard [Sat, 21 Jan 2012 12:27:25 +0000 (20:27 +0800)]
Augment list of ignred files

12 years agoautogen.sh: Honor NOCONFIGURE environment variable
Colin Walters [Tue, 27 Dec 2011 17:19:50 +0000 (12:19 -0500)]
autogen.sh: Honor NOCONFIGURE environment variable

See http://people.gnome.org/~walters/docs/build-api.txt

12 years agominimal mingw support
Roumen Petrov [Sat, 23 Jan 2010 17:01:41 +0000 (19:01 +0200)]
minimal mingw support

12 years agoconfigure: remove checks for isinf and isnan as those are not used anyway
Stefan Kost [Wed, 25 May 2011 21:32:45 +0000 (00:32 +0300)]
configure: remove checks for isinf and isnan as those are not used anyway

As pointed out by Roumen Petrov those check were wrong (isinf and isnan are
macros) and they are not used in the code either. Thus remove the checks.

12 years agoconfigure: acconfig.h is deprecated since autoconf-2.50
Stefan Kost [Wed, 18 May 2011 06:50:50 +0000 (09:50 +0300)]
configure: acconfig.h is deprecated since autoconf-2.50

Remove deprecated file (leftover from autoconf-2.13). Change AC_DEFINE into
3-arg versions to provide the comments for config.h. Bump autoconf version to
2.59 (same as libxml).

12 years agoconfigure: support silent automake rules if possible
Stefan Kost [Tue, 10 May 2011 07:35:43 +0000 (10:35 +0300)]
configure: support silent automake rules if possible

This gives us a much less noisy build and makes error stand out a lot more.

13 years agopreproc: fix the build
Stefan Kost [Tue, 3 May 2011 12:16:47 +0000 (15:16 +0300)]
preproc: fix the build

Fixup commit 0d6713d715509da1fec27bec220d43aa4fc48d0f that forgot to create the
local variable of the required type.

13 years agoPoint to GIT for source code and a bit of cleanup
Daniel Veillard [Fri, 11 Mar 2011 02:00:16 +0000 (10:00 +0800)]
Point to GIT for source code and a bit of cleanup

13 years agoFix a memory leak with xsl:number
Daniel Veillard [Mon, 7 Mar 2011 04:21:26 +0000 (12:21 +0800)]
Fix a memory leak with xsl:number

Pointed out by Ralf Junker <ralfjunker@gmx.de>, and added his
reproducer to the regression tests

13 years agoFix a problem with ESXLT date:add() with January
money_seshu Dronamraju [Mon, 7 Mar 2011 04:12:11 +0000 (12:12 +0800)]
Fix a problem with ESXLT date:add() with January

Also adds a regression test provided by Michael Ludwig <milu71@gmx.de>

13 years agoFix a memory leak if compiled with Windows locale support
Daniel Veillard [Mon, 28 Feb 2011 01:54:15 +0000 (09:54 +0800)]
Fix a memory leak if compiled with Windows locale support

Ralf Junker <ralfjunker@gmx.de> pointed out a ouple of leaks in the
Windows locale support:
* libxslt/xslt.c: add cleanup code for the mutex in xsltUninit()
* libxslt/xsltlocale.c libxslt/xsltlocale.h: add a new cleanup function
  xsltFreeLocales
* libxslt/extensions.c: add a call to xsltFreeLocales in xsltCleanupGlobals

13 years agoFix generate-id() to not expose object addresses
Daniel Veillard [Tue, 22 Feb 2011 02:14:23 +0000 (10:14 +0800)]
Fix generate-id() to not expose object addresses

As pointed out by Chris Evans <scarybeasts@gmail.com> it's better
security wise to not expose object addresses directly, use a diff
w.r.t. the document root own address to avoid this
* libxslt/functions.c: fix IDs generation code

13 years agoFix curlies support in literals for non-compiled AVTs
Nick Wellnhofer [Mon, 8 Nov 2010 13:58:21 +0000 (14:58 +0100)]
Fix curlies support in literals for non-compiled AVTs

13 years agoPrecompile patterns in xsl:number
Nick Wellnhofer [Mon, 8 Nov 2010 13:50:17 +0000 (14:50 +0100)]
Precompile patterns in xsl:number

speedup optimization, it should not change semantic at all

13 years agoFix some warnings in the refactored code
Nick Wellnhofer [Mon, 8 Nov 2010 10:14:26 +0000 (11:14 +0100)]
Fix some warnings in the refactored code

13 years agoAllow whitespace in xsl:variable with select
Nick Wellnhofer [Mon, 8 Nov 2010 10:13:17 +0000 (11:13 +0100)]
Allow whitespace in xsl:variable with select

Comments are also allowed

13 years agoSmall fixes to locale code
Nick Wellnhofer [Mon, 8 Nov 2010 10:09:25 +0000 (11:09 +0100)]
Small fixes to locale code

13 years agoFix bug 602515
Nick Wellnhofer [Mon, 8 Nov 2010 09:59:24 +0000 (10:59 +0100)]
Fix bug 602515

Pattern matching with predicates

13 years agoAdding new generated files
Daniel Veillard [Mon, 8 Nov 2010 09:55:25 +0000 (10:55 +0100)]
Adding new generated files

13 years agoFix popping of vars in xsltCompilerNodePop
Nick Wellnhofer [Mon, 8 Nov 2010 09:49:32 +0000 (10:49 +0100)]
Fix popping of vars in xsltCompilerNodePop

Fix an off by one bug in Var pop-up in the compiler

13 years agoFix direct pattern matching bug
Nick Wellnhofer [Mon, 8 Nov 2010 09:42:33 +0000 (10:42 +0100)]
Fix direct pattern matching bug

and adds a test case for the problem,
also adding a .gitignore cleanup

13 years agoGet rid of specific build setup and STATIC_BINARIES
Daniel Veillard [Mon, 8 Nov 2010 09:32:32 +0000 (10:32 +0100)]
Get rid of specific build setup and STATIC_BINARIES

13 years agoFix a small out of tree compilation issue
Hao Hu [Tue, 12 Oct 2010 13:04:34 +0000 (15:04 +0200)]
Fix a small out of tree compilation issue

exsltconfig.h should be addressed differently

14 years agoprofiling: add callgraph report
Stefan Kost [Mon, 8 Mar 2010 12:58:00 +0000 (14:58 +0200)]
profiling: add callgraph report

This patch also tracks who called a template and how often. Based on that the
output of xsltproc --profile now also contains a gprof alike callgraph. If available
posix monotonic clocks are the preferred way to get timestamps.