Daniel Veillard [Thu, 3 Apr 2008 07:34:26 +0000 (07:34 +0000)]
avoid a scary realloc() loop should fix #520383 Daniel
* libxslt/xsltutils.c: avoid a scary realloc() loop should fix #520383
Daniel
svn path=/trunk/; revision=1463
Daniel Veillard [Thu, 3 Apr 2008 05:34:12 +0000 (05:34 +0000)]
applied patch from Peter Pawlowski fixing a timezone offset problem, fixes
* libexslt/date.c: applied patch from Peter Pawlowski fixing
a timezone offset problem, fixes #521680
* libxslt/namespaces.c: a bit of space/tabs cleanup
Daniel
svn path=/trunk/; revision=1462
Daniel Veillard [Thu, 3 Apr 2008 04:26:46 +0000 (04:26 +0000)]
small fix to man page synopsis, should fix #525822 Daniel
* doc/xsltproc.xml doc/xsltproc.1 doc/xsltproc.html: small fix to
man page synopsis, should fix #525822
Daniel
svn path=/trunk/; revision=1461
William M. Brack [Sat, 15 Mar 2008 03:17:05 +0000 (03:17 +0000)]
*libexslt/functions.c: fixed minor error reported on the mailing
list by Mark Howe, which caused a segfault if func:result was
postitioned as top-level element.
svn path=/trunk/; revision=1460
Rob Richards [Thu, 13 Mar 2008 17:46:34 +0000 (17:46 +0000)]
typo fix. test commit
* INSTALL: typo fix. test commit
svn path=/trunk/; revision=1459
Daniel Veillard [Thu, 13 Mar 2008 08:39:24 +0000 (08:39 +0000)]
patch from Rob Richards for VS 2008 fix a problem with namespace nodes
* libxslt/win32config.h: patch from Rob Richards for VS 2008
* python/types.c: fix a problem with namespace nodes coming from
XPath nodesets.
Daniel
svn path=/trunk/; revision=1458
Daniel Veillard [Mon, 3 Mar 2008 08:42:08 +0000 (08:42 +0000)]
fix maxdepth default value documentation fixes #519921. Daniel
* doc/xsltproc.xml doc/xsltproc.1: fix maxdepth default value
documentation fixes #519921.
Daniel
svn path=/trunk/; revision=1457
William M. Brack [Fri, 15 Feb 2008 17:26:07 +0000 (17:26 +0000)]
*libxslt/extensions.c: fixed minor error bug #516483
*tests/exslt/common - deleted node-set.9 regression test,
because it relied upon an external web import.
svn path=/trunk/; revision=1456
Daniel Veillard [Tue, 5 Feb 2008 07:54:32 +0000 (07:54 +0000)]
applied documentation patch from Jason Viers for xsltParseStylesheetDoc
* libxslt/xslt.c: applied documentation patch from Jason Viers
for xsltParseStylesheetDoc
Daniel
svn path=/trunk/; revision=1455
Daniel Veillard [Tue, 5 Feb 2008 07:37:55 +0000 (07:37 +0000)]
applied a portability patch from Stephane Bidoul Daniel
* python/tests/pyxsltproc.py: applied a portability patch from
Stephane Bidoul
Daniel
svn path=/trunk/; revision=1454
Daniel Veillard [Thu, 24 Jan 2008 15:26:46 +0000 (15:26 +0000)]
fix links for Cygwin DocBook setup as suggested by Philippe Bourcier
* doc/xslt.html doc/docbook.html: fix links for Cygwin DocBook
setup as suggested by Philippe Bourcier
Daniel
svn path=/trunk/; revision=1453
William M. Brack [Mon, 24 Dec 2007 01:24:16 +0000 (01:24 +0000)]
fixed spelling error
svn path=/trunk/; revision=1452
William M. Brack [Mon, 24 Dec 2007 00:40:07 +0000 (00:40 +0000)]
fixed a problem on superfluous re-generation of keys reported on the
* libxslt/keys.c, libxslt/pattern.c, libxslt/xsltInternals.h:
fixed a problem on superfluous re-generation of keys reported
on the mailing list by Joseph Urban.
svn path=/trunk/; revision=1451
Daniel Veillard [Thu, 29 Nov 2007 10:45:29 +0000 (10:45 +0000)]
avoid a problem in configure if an old gcrypt version is installed, patch
* configure.in: avoid a problem in configure if an old gcrypt
version is installed, patch from Brent Cowgill, fixes #500390
Daniel
svn path=/trunk/; revision=1450
William M. Brack [Tue, 13 Nov 2007 21:12:50 +0000 (21:12 +0000)]
After discussion on Bugzilla with Peter Pawlowski, added same code for
* libexslt/common.c, libexslt/dynamic.c: After discussion on
Bugzilla with Peter Pawlowski, added same code for preventing
deletion of function result during garbage collection (see
bug #495995).
svn path=/trunk/; revision=1449
William M. Brack [Mon, 12 Nov 2007 21:53:00 +0000 (21:53 +0000)]
Added code to mark the results of str:tokenize and str:split as "function
* libexslt/strings.c: Added code to mark the results of
str:tokenize and str:split as "function result" to avoid
garbage-collecting them during global variable initialisation.
Should fix bug #495995.
svn path=/trunk/; revision=1448
William M. Brack [Thu, 25 Oct 2007 00:43:22 +0000 (00:43 +0000)]
changed iterator argument for Py_Dict_Next from int to ssize_t to fix
* python/libxslt.c: changed iterator argument for Py_Dict_Next
from int to ssize_t to fix x86_64 bug #489854
svn path=/trunk/; revision=1447
Daniel Veillard [Wed, 10 Oct 2007 14:34:38 +0000 (14:34 +0000)]
applied patch from Maurice van der Pot to fix EXSLT week-in-year extenson
* libexslt/date.c tests/exslt/date/datetime.1.out
tests/exslt/date/date.1.out tests/exslt/date/date.1.xml:
applied patch from Maurice van der Pot to fix EXSLT
week-in-year extenson which was not conforming to the definition.
This also changes the output of the tests a bit. Should fix #452876
Daniel
svn path=/trunk/; revision=1446
Daniel Veillard [Tue, 4 Sep 2007 08:12:03 +0000 (08:12 +0000)]
Adding a MAINTAINER file for Gnome, Daniel
svn path=/trunk/; revision=1445
William M. Brack [Thu, 30 Aug 2007 00:17:46 +0000 (00:17 +0000)]
applied patch from Daniel Gryniewicz to fix a segfault caused by a
* python/libxslt.c: applied patch from Daniel Gryniewicz to
fix a segfault caused by a parameter array not being preset
to zero.
svn path=/trunk/; revision=1444
Daniel Veillard [Thu, 23 Aug 2007 15:32:58 +0000 (15:32 +0000)]
preparing release of 1.1.22 Daniel
* configure.in doc/*: preparing release of 1.1.22
Daniel
svn path=/trunk/; revision=1442
Daniel Veillard [Thu, 23 Aug 2007 13:38:27 +0000 (13:38 +0000)]
applied patch from Rob Richards to fix a stylesheet compilation error
* libxslt/xslt.c: applied patch from Rob Richards to fix a
stylesheet compilation error handling problem #382570
Daniel
svn path=/trunk/; revision=1441
Daniel Veillard [Thu, 23 Aug 2007 13:22:44 +0000 (13:22 +0000)]
applied patch from Roland Schwarz and Rob Richards to fix the security
* libxslt/security.c: applied patch from Roland Schwarz and Rob
Richards to fix the security file checks on Windows, should
close #464432
Daniel
svn path=/trunk/; revision=1440
William M. Brack [Thu, 23 Aug 2007 13:14:55 +0000 (13:14 +0000)]
added regression test for bug #469410
* tests/general/bug-165.[xsl,out,err], tests/docs/bug-165.xml,
tests/general/Makefile.am, tests/docs/Makefile.am:
added regression test for bug #469410
svn path=/trunk/; revision=1439
Daniel Veillard [Thu, 23 Aug 2007 12:20:49 +0000 (12:20 +0000)]
patch from Drazen Kacar to add a --encoding option fixes #443868 augment
* xsltproc/xsltproc.c: patch from Drazen Kacar to add a --encoding
option fixes #443868
* doc/xsltproc.xml doc/xsltproc.1: augment and regenerate man page.
Daniel
svn path=/trunk/; revision=1438
Daniel Veillard [Thu, 23 Aug 2007 09:46:25 +0000 (09:46 +0000)]
apply patch from Björn Wiberg fixing build on AIX and closing bug #332173
* libexslt/date.c: apply patch from Björn Wiberg fixing build on AIX
and closing bug #332173
Daniel
svn path=/trunk/; revision=1437
Daniel Veillard [Wed, 22 Aug 2007 17:39:14 +0000 (17:39 +0000)]
Updated Perl and lxml links, Daniel
svn path=/trunk/; revision=1436
Daniel Veillard [Fri, 3 Aug 2007 13:46:43 +0000 (13:46 +0000)]
apply patch from Rob Richards to improve build with VS2005 Daniel
* win32/Makefile.msvc win32/configure.js: apply patch from
Rob Richards to improve build with VS2005
Daniel
svn path=/trunk/; revision=1435
William M. Brack [Thu, 26 Jul 2007 19:42:32 +0000 (19:42 +0000)]
Removed the exclude-result-prefix change of 31 May 2007. Fixes bug
* libxslt/xslt.c: Removed the exclude-result-prefix change of
31 May 2007. Fixes bug #459713.
svn path=/trunk/; revision=1434
William M. Brack [Sat, 16 Jun 2007 14:44:09 +0000 (14:44 +0000)]
Fixed problem with RVT cleanup related to some exslt functions (reported
* libxslt/transform.c: Fixed problem with RVT cleanup related
to some exslt functions (reported on the list by Marc Adkins).
svn path=/trunk/; revision=1433
William M. Brack [Wed, 13 Jun 2007 20:28:54 +0000 (20:28 +0000)]
added test case for bug #413451
* tests/exslt/common/node-set.9.[xml,xsl,out],
tests/exslt/common/Makefile.am: added test case for bug #413451
svn path=/trunk/; revision=1432
Daniel Veillard [Tue, 12 Jun 2007 16:51:07 +0000 (16:51 +0000)]
preparing release of 1.1.20 Daniel
* NEWS configure.in doc/*: preparing release of 1.1.20
Daniel
svn path=/trunk/; revision=1430
William M. Brack [Thu, 31 May 2007 19:40:11 +0000 (19:40 +0000)]
fixed obscure namespace problem related to exclude-result-prefix
* libxslt/xslt.c: fixed obscure namespace problem related to
exclude-result-prefix
svn path=/trunk/; revision=1429
William M. Brack [Sun, 6 May 2007 16:18:15 +0000 (16:18 +0000)]
fixed minor compilation warning in libxslt/transform.c
svn path=/trunk/; revision=1428
William M. Brack [Sun, 6 May 2007 15:43:22 +0000 (15:43 +0000)]
fixed two memory leaks, one in exsltMathConstant and one in
* libexslt/math.c: fixed two memory leaks, one in exsltMathConstant
and one in exsltMathConstantFunction (bug #436324)
svn path=/trunk/; revision=1427
William M. Brack [Fri, 4 May 2007 07:52:38 +0000 (07:52 +0000)]
fixed xpath context housekeeping problem on processing 'choose' (bug
* libxslt/transform.c: fixed xpath context housekeeping problem
on processing 'choose' (bug 435479).
svn path=/trunk/; revision=1426
William M. Brack [Thu, 26 Apr 2007 03:04:28 +0000 (03:04 +0000)]
fixed (another) problem with cached RVT's (from re-opened #378766).'
* libxslt/transform.c: fixed (another) problem with cached
RVT's (from re-opened #378766).'
svn path=/trunk/; revision=1425
Daniel Veillard [Tue, 27 Mar 2007 14:49:10 +0000 (14:49 +0000)]
apply patch fron Shaun McCance to hook xsl:message construct to the new
* libxslt/xsltutils.c: apply patch fron Shaun McCance to hook
xsl:message construct to the new per-xsltTransformCtxt error
callback if set up.
* Makefile.am: do not package svn files in releases
Daniel
svn path=/trunk/; revision=1424
William M. Brack [Fri, 2 Mar 2007 10:43:34 +0000 (10:43 +0000)]
added setting of TRIO_REPLACE_STDIO when TRIO routines are required.
* xsltconfig.h.in: added setting of TRIO_REPLACE_STDIO when TRIO
routines are required.
* namespaces.c, xsltutils.c: enhanced handling of stdio.h vs. trio.h
when trio routines are required (now use XSLT_NEED_TRIO)
(bug #412787)
svn path=/trunk/; revision=1423
William M. Brack [Sun, 18 Feb 2007 16:58:11 +0000 (16:58 +0000)]
fixed tab/space inconsistency with patch provided by Andreas Hanke (bug
* python/libxsl.py: fixed tab/space inconsistency with patch provided by Andreas Hanke (bug #409193)
svn path=/trunk/; revision=1422
William M. Brack [Thu, 15 Feb 2007 22:02:20 +0000 (22:02 +0000)]
Changed all references to CVS to be SVN; changed corresponding links.
* doc/xslt.html: Changed all
references to CVS to be SVN; changed corresponding links.
* doc/*html: regenerated the documentation for above
svn path=/trunk/; revision=1421
William M. Brack [Wed, 14 Feb 2007 09:19:14 +0000 (09:19 +0000)]
Fixed problem with namespace on compound predicate (bug #407731)
* libxslt/pattern.c: Fixed problem with namespace on compound predicate (bug #407731)
svn path=/trunk/; revision=1420
William M. Brack [Wed, 24 Jan 2007 19:08:38 +0000 (19:08 +0000)]
added check for memory allocation error (bug #400242); fixed "type-punned
* libxslt/pattern.c: added check for memory allocation error (bug #400242);
fixed "type-punned pointer" warnings.
* libxslt/xsltutils.c: added checks for memory allocation error
(bug #400242)
* restored NEWS, doc/EXSLT/downloads.html which mysteriously disappeared
from svn
svn path=/trunk/; revision=1419
Daniel Veillard [Wed, 17 Jan 2007 14:40:20 +0000 (14:40 +0000)]
preparing release of 1.1.20 small patch for missing includes on some BSD,
* configure.in doc/*: preparing release of 1.1.20
* libexslt/crypto.c: small patch for missing includes on some BSD,
fixes #397373
* configure.in: replace == by = in test, raised by Roland Illig,
should fix #397371
Daniel
svn path=/trunk/; revision=1418
William M. Brack [Mon, 15 Jan 2007 02:49:25 +0000 (02:49 +0000)]
fixed two problems related to checking of fragments, related to python
* libxslt/functions.c: fixed two problems related to checking
of fragments, related to python htmlCtxtReadFile problem
reported on mailing list by Nic Ferrier.
svn path=/trunk/; revision=1417
William M. Brack [Sat, 13 Jan 2007 07:28:09 +0000 (07:28 +0000)]
reverted last change, fixed some comments. Note that in it's current state
* libxslt/extensions.c: reverted last change, fixed some
comments. Note that in it's current state the plugin
implementation will fail if called from a program
compiled as static!
svn path=/trunk/; revision=1416
William M. Brack [Fri, 12 Jan 2007 23:49:56 +0000 (23:49 +0000)]
fixed problem with DV/WMB testing env. regenerated docs;
* configure.in: fixed problem with DV/WMB testing env.
* regenerated docs; doc/APIchunk1[012].html added to SVN
* libxslt/extensions.c: fixed problem with plugin loading;
removed testplugin.c from SVN (current version kept as
tests/plugin/testplugin.c)
svn path=/trunk/; revision=1415
William M. Brack [Thu, 11 Jan 2007 19:12:45 +0000 (19:12 +0000)]
enhanced to ignore empty text node in xsltDefaultProcessOneNode (avoid
* libxslt/transform.c: enhanced to ignore empty text node
in xsltDefaultProcessOneNode (avoid calling xsltCopyText)
(bug #354900)
* xsltproc/xsltproc.c: added check for output file problem,
yielding new error code 11 (Mike Hommey).
* doc/xsltproc.html, doc/xsltproc.xml: added documentation
for above, regenerated docs (doc/xlstproc.1)
svn path=/trunk/; revision=1414
William M. Brack [Thu, 11 Jan 2007 03:13:13 +0000 (03:13 +0000)]
added new function replace from Joel Reed. added new test case for above.
* libexslt/strings.c: added new function replace from Joel
Reed.
* tests/exslt/Makefile.am, replace.1.xml, replace.1.xsl,
replace.1.out: added new test case for above.
* libxslt.spec.in: trivial change from Gnome to GNOME
* configure.in: trivial change for flags on my compilations
* libxslt/documents.c, libxslt/documents.h, libxslt/keys.c,
libxslt/keys.h, libxslt/variables.c, libxslt/templates.c,
libxslt/transform.c, libxslt/variables.c, libxslt/xslt.c,
libxslt/xsltutils.c: fixed some documentation/comments and
compilation warnings - no change to logic.
* re-generated the documentation.
svn path=/trunk/; revision=1413
Daniel Veillard [Wed, 3 Jan 2007 15:39:01 +0000 (15:39 +0000)]
adapt the extra versioning code to SVN Daniel
* configure.in: adapt the extra versioning code to SVN
Daniel
svn path=/trunk/; revision=1412
William M. Brack [Fri, 22 Dec 2006 17:12:57 +0000 (17:12 +0000)]
applied patch supplied by Kjartan Maraas (bug #388567).
* python/libxslt.c: applied patch supplied by Kjartan Maraas
(bug #388567).
William M. Brack [Tue, 12 Dec 2006 00:20:42 +0000 (00:20 +0000)]
removed message output
William M. Brack [Mon, 11 Dec 2006 22:56:08 +0000 (22:56 +0000)]
removed testfile added in error
William M. Brack [Mon, 11 Dec 2006 22:51:47 +0000 (22:51 +0000)]
further enhancement to the original fix for bug #381319 (which was not
* libexslt/functions.c: further enhancement to the original
fix for bug #381319 (which was not correct).
* tests/exslt/functions: minor enhancement to function.9.xsl;
function.10.[xsl,xml,out] added to regression tests to check
recursive calls.
Daniel Veillard [Mon, 11 Dec 2006 11:11:06 +0000 (11:11 +0000)]
applied patch from Nic James Ferrier to make stylesheets comparable and to
* configure python/generator.py python/libxsl.py
python/libxslt-python-api.xml python/libxslt.c
python/tests/2stage.py python/tests/loader.py: applied patch from
Nic James Ferrier to make stylesheets comparable and to add
transformContext handling
Daniel
William M. Brack [Sat, 9 Dec 2006 23:18:21 +0000 (23:18 +0000)]
changed handling of function params to fix bug #381319 exposed
* libexslt/functions.c: changed handling of function params
to fix bug #381319
* libxslt/transform.[ch]: exposed xsltLocalVariablePush and
xsltLocalVariablePop as global entries so that they could
be used from within libexslt/functions.c
* tests/exslt/functions/function.9.[xsl,xml,out] added to
regression tests
Daniel Veillard [Tue, 5 Dec 2006 09:59:07 +0000 (09:59 +0000)]
applied patch from Marcus Meissner removing a strict aliasing problem
* libxslt/extensions.c: applied patch from Marcus Meissner removing
a strict aliasing problem should fix #317921
Daniel
William M. Brack [Fri, 1 Dec 2006 16:02:14 +0000 (16:02 +0000)]
fixed problem with housekeeping of localRVTBase, bug #378766
* libxslt/transform.c: fixed problem with housekeeping of
localRVTBase, bug #378766
Daniel Veillard [Wed, 29 Nov 2006 15:09:33 +0000 (15:09 +0000)]
preparing release of libxslt-1.1.19 Daniel
* NEWS configure.in doc//*: preparing release of libxslt-1.1.19
Daniel
William M. Brack [Sat, 25 Nov 2006 03:48:02 +0000 (03:48 +0000)]
fixed problem with cached RVT's, bug #378766
* libxslt/variables.c: fixed problem with cached RVT's,
bug #378766
Daniel Veillard [Thu, 23 Nov 2006 16:46:39 +0000 (16:46 +0000)]
applied patch from Mike Hommey about saving the current in-scope namespace
* libxslt/transform.c: applied patch from Mike Hommey about saving
the current in-scope namespace list when calling a template, fixes
bug #377579
Daniel
Daniel Veillard [Thu, 23 Nov 2006 14:32:26 +0000 (14:32 +0000)]
fix a python detection problem pointed out by Joseph Sacco, fixes bug
* configure.in: fix a python detection problem pointed out by
Joseph Sacco, fixes bug #376391
Daniel
William M. Brack [Fri, 17 Nov 2006 01:54:15 +0000 (01:54 +0000)]
fixed problem with entity handling within xsltCopyAttrListNoOverwrite
* libxslt/transform.c: fixed problem with entity handling
within xsltCopyAttrListNoOverwrite (#352907)
* tests/general/bug-164.xsl, tests/general/bug-164.out,
tests/docs/bug-164.oxml: added a regression test for this
Daniel Veillard [Thu, 26 Oct 2006 13:32:42 +0000 (13:32 +0000)]
preparing release of libxslt-1.1.18, this bumps libxml2 requirement to
* NEWS configure.in doc//*: preparing release of libxslt-1.1.18,
this bumps libxml2 requirement to 1.6.27
* libexslt/date.c libxslt/namespaces.h libxslt/xslt.c
libxslt/xsltInternals.h: cosmetic cleanups to restore the
API extraction
Daniel
Daniel Veillard [Thu, 26 Oct 2006 08:35:34 +0000 (08:35 +0000)]
removed all remaining references to the old Wiki Daniel
* doc//*: removed all remaining references to the old Wiki
Daniel
William M. Brack [Thu, 12 Oct 2006 15:15:26 +0000 (15:15 +0000)]
fixed end-of-month problem in exsltDateCurrent (#359246)
* libexslt/date.c: fixed end-of-month problem in exsltDateCurrent
(#359246)
Daniel Veillard [Thu, 12 Oct 2006 12:40:52 +0000 (12:40 +0000)]
applied patch from Mike Hommey fixing 2 erroneous xmlFree() and adding a
* libxslt/preproc.c: applied patch from Mike Hommey fixing 2
erroneous xmlFree() and adding a message on an unsupported feature
Daniel
Daniel Veillard [Wed, 11 Oct 2006 21:19:49 +0000 (21:19 +0000)]
applied fix for accessor functions of a stylesheet returning pointers to
* python/libxslt-python-api.xml: applied fix for accessor functions
of a stylesheet returning pointers to immutable strings, patch
from #320540
* xsltproc/xsltproc.c: fix the xinclude on stylehseet problem
by adding a new parameter to xsltproc names --xincludestyle
Daniel
Daniel Veillard [Wed, 11 Oct 2006 20:28:25 +0000 (20:28 +0000)]
apply patch from Gary Coady to compile when libxml2 has no xinclude
* xsltproc/xsltproc.c: apply patch from Gary Coady to compile when
libxml2 has no xinclude support #319886
* docs/*: renamed Gnome to GNOME fixes #352159
Daniel
Daniel Veillard [Wed, 11 Oct 2006 19:36:45 +0000 (19:36 +0000)]
a missing DESTDIR fix reference to build paths in python module fix the
* libxslt/Makefile.am: a missing DESTDIR
* python/Makefile.am: fix reference to build paths in python module
* libexslt/exsltconfig.h.in libxslt/xsltconfig.h.in: fix the header
comments on version values, the 3 are patches from Peter
Breitenlohner and should fix #340995
Daniel
Daniel Veillard [Wed, 11 Oct 2006 09:16:27 +0000 (09:16 +0000)]
applied cleanup patch from Mikhail Zabaluev which should finish fixing
* libxslt/security.c: applied cleanup patch from Mikhail Zabaluev
which should finish fixing #337486
Daniel
Daniel Veillard [Wed, 11 Oct 2006 07:55:30 +0000 (07:55 +0000)]
applied fix from Shane Corgatelli to pass the full URL when checking
* libxslt/security.c: applied fix from Shane Corgatelli to pass
the full URL when checking security access for network URLs,
should fix bug #359366
Daniel
Daniel Veillard [Mon, 21 Aug 2006 08:46:05 +0000 (08:46 +0000)]
applied patch from Daniel Leidert to fix some typo applied another patch
* doc/xslt.html python/tests/pyxsltproc.py xsltproc/xsltproc.c:
applied patch from Daniel Leidert to fix some typo
* xsltproc.xml xsltproc.1: applied another patch from Daniel Leidert
and regenerated
Daniel
Daniel Veillard [Wed, 16 Aug 2006 15:33:13 +0000 (15:33 +0000)]
--xinclude should also force XInclude processing on the stylesheets
* xsltproc/xsltproc.c: --xinclude should also force XInclude
processing on the stylesheets themselves, raised by Daniel Leidert
Daniel
Kasimier T. Buchcik [Thu, 10 Aug 2006 13:56:20 +0000 (13:56 +0000)]
Fixed restoring the context doc for XPath in xsltForEach(). Eliminated the
* libxslt/transform.c libxslt/variables.c
libxslt/xsltInternals.h: Fixed restoring the context doc
for XPath in xsltForEach(). Eliminated the use of @tmpDoc
of the transformation context.
Kasimier T. Buchcik [Thu, 10 Aug 2006 11:43:22 +0000 (11:43 +0000)]
Added missing QName-validation of some attributes of XSLT-elements. This
* libxslt/preproc.c: Added missing QName-validation of some
attributes of XSLT-elements. This fixes bug #304921, reported
by Frans Englich.
Kasimier T. Buchcik [Thu, 10 Aug 2006 11:37:37 +0000 (11:37 +0000)]
As suggested by Bill, I changed xsltShallowCopyNsNode() to return an
* libxslt/transform.c: As suggested by Bill, I changed
xsltShallowCopyNsNode() to return an xmlNsPtr instead of
an int. The fix of bug #350085 is OK; i.e. the removal
of the call to xsltFreeRVTs() in
xsltApplyStylesheetInternal(). I think I tried to clear
the transformation context as much as possible, in case
it is reused; Daniel informed me on the list that reusing
the context is not intended, so no need anymore to try
to free the fragments immediately after the transformation.
William M. Brack [Wed, 9 Aug 2006 18:22:39 +0000 (18:22 +0000)]
Fixed problem with cleanup of RVT's, should clear bug350085; cleaned up
* libxslt/transform.c: Fixed problem with cleanup of RVT's, should
clear bug350085; cleaned up most warnings (still a problem in
xsltShallowCopyNsNode)
* trivial warning cleanup in libxslt/[extensions.c, namespaces.c,
xslt.c and xsltInternals.h] and libexslt/functions.c
Daniel Veillard [Fri, 4 Aug 2006 13:01:17 +0000 (13:01 +0000)]
*** empty log message ***
Daniel Veillard [Wed, 19 Jul 2006 19:04:52 +0000 (19:04 +0000)]
fix float and boolean XPath conversions try to fix Stephane Bidoul attempt
* python/types.c: fix float and boolean XPath conversions
* libxslt/xsltutils.c: try to fix Stephane Bidoul attempt
at setting XInclude support.
Daniel
William M. Brack [Mon, 17 Jul 2006 18:24:47 +0000 (18:24 +0000)]
; tests/general/bug-41-.xsl and tests/general/bug-43.xsl : call-template
* Updated tests affected by recent library changes -
tests/general/bug-1-.out, tests/general/bug-24-.out,
tests/keys/month.out : (<t></t> now becomes <t/>);
tests/general/bug-41-.xsl and tests/general/bug-43.xsl :
call-template and apply-template, where the template has
no parameter but one is supplied (var should not be affected)
tests/general/bug-145.err : changed error text
Kasimier T. Buchcik [Fri, 14 Jul 2006 16:18:32 +0000 (16:18 +0000)]
Committing again, since I forgot to switch from win to linux linebreaks in
* libxslt/attributes.c libxslt/documents.c
libxslt/functions.c libxslt/keys.c libxslt/namespaces.c
libxslt/pattern.c libxslt/preproc.c libxslt/templates.c
libxslt/templates.h libxslt/transform.c
libxslt/variables.c libxslt/xslt.c
libxslt/xsltInternals.h libxslt/xsltutils.c
libxslt/xsltutils.h libexslt/common.c libexslt/dynamic.c
libexslt/functions.c libexslt/strings.c:
Committing again, since I forgot to switch from win to linux
linebreaks in the files.
Kasimier T. Buchcik [Fri, 14 Jul 2006 16:10:25 +0000 (16:10 +0000)]
Refactored xsltValueOf(). Changed to use xmlXPathCastToString() directly,
* libxslt/attributes.c libxslt/documents.c
libxslt/functions.c libxslt/keys.c libxslt/namespaces.c
libxslt/pattern.c libxslt/preproc.c libxslt/templates.c
libxslt/templates.h libxslt/transform.c libxslt/variables.c
libxslt/xslt.c libxslt/xsltInternals.h libxslt/xsltutils.c
libxslt/xsltutils.h libexslt/common.c libexslt/dynamic.c
libexslt/functions.c libexslt/strings.c:
Refactored xsltValueOf(). Changed to use xmlXPathCastToString()
directly, rather than creating an intermediate object with
xmlXPathConvertString(). This now does not add a text-node to
the result if the string is empty (this has impact on
serialization, since an empty text-node is serialized as
<foo></foo>, and now it will be serialized as <foo/>).
Refactored other functions in transform.c:
Mostly code cleanup/restructuring. Minimized number of
function variables for instruction which eat up function stack
memory when recursing templates (xsltIf(), xsltChoose(),
xsltApplyTemplates(), xsltCallTemplate()).
Changed XSLT tests to use xmlXPathCompiledEvalToBoolean().
Implemented redefinition checks at compilation-time and
eliminating them at transformation time in the refactored code
paths.
Introduced the field @currentTemplateRule on xsltTransformContext to
reflect the "Current Template Rule" as defined by the spec.
NOTE that ctxt->currentTemplateRule and ctxt->templ is not the
same; the former is the "Current Template Rule" as defined by the
XSLT spec, the latter is simply the template struct being
currently processed by Libxslt.
Added XML_COMMENT_NODE and XML_CDATA_SECTION_NODE to the macro
IS_XSLT_REAL_NODE.
Misc code cleanup/restructuring and everything else I already forgot.
Refactored lifetime of temporary result tree fragments.
Substituted all calls to the now deprecated xsltRegisterTmpRVT()
for the new xsltRegisterLocalRVT().
Fragments of xsl:variable and xsl:param are freed when the
variable/pram is freed.
Fragments created when evaluating a "select" of xsl:varible and
xsl:param are also bound to the lifetime of the var/param.
EXSLT's func:function now uses the following functions to let take
care the transformation's garbage collector of returned tree
fragments:
xsltExtensionInstructionResultRegister(),
xsltExtensionInstructionResultFinalize()
Fixes:
#339222 - xsl:param at invalid position inside an xsl:template is
not catched
#346015 - Non-declared caller-parameters are accepted
#160400 - Compiles invalid XSLT; unbound variable accepted
#308441 - namespaced parameters become unregistered
#307103 - problem with proximity position in predicates of match
patterns
#328218 - problem with exsl:node-set() when converting strings
to node sets
#318088 - infinite recursion detection
#321505 - Multiple contiguous CDATA in output
#334493 - "--param" option does not have root context
#114377 - weird func:result/xsl:variable/exsl:node-set interaction
#150309 - Regression caused by fix for 142768
Kasimier T. Buchcik [Wed, 21 Jun 2006 13:16:57 +0000 (13:16 +0000)]
Fixed incorrect regression tests/results.
* tests/docs/bug-54.xml tests/general/bug-54.out
tests/general/bug-99.out tests/general/bug-136.out
tests/REC/test-7.1.3.xsl tests/REC/test-7.1.4.xsl
tests/REC/test-7.3.xsl tests/REC/test-7.4.xsl:
Fixed incorrect regression tests/results.
Kasimier T. Buchcik [Mon, 19 Jun 2006 17:45:33 +0000 (17:45 +0000)]
Merged all the namespace lookup/create/disable functions into
* libxslt/attributes.c libxslt/attrvt.c libxslt/namespaces.c
libxslt/namespaces.h libxslt/preproc.c libxslt/templates.c
libxslt/transform.c libxslt/variables.c libxslt/xslt.c
libxslt/xsltInternals.h libxslt/xsltutils.c:
Merged all the namespace lookup/create/disable functions
into xsltGetSpecialNamespace(). Changed xsltGetNamespace()
and xsltGetPlainNamespace() to call xsltGetSpecialNamespace(),
but kept the ns-aliasing mechanism; the ns-aliasing needs
to be removed when we move to the refactored code, which
applies ns-alias only at compilaton time.
Refactored xsltElementComp() (preproc.c); enhanced error reports.
Fixed: if the "namespace" attribute was not given, then this
performed incorrectly only a lookup for a default namespace;
i.e., without taking any prefix on the "name" attribute into
account.
Refactored xsltElement() (transform.c); enhanced error reports.
Refactored xsltAttributeComp() (preproc.c). Added namespace
lookup as in xsltElementComp(). Enhanced error reports.
Refactored xsltAttribute() (transform.c); enhanced error reports.
xsltCopyTreeInternal(): eliminated the need to call xmlGetNsList()
for every element in the tree; this needs to be done only for
the top-most elements. For subsequent elements reconcile only
the ns-declarations. Disallowed setting of ns-declarations if
children have been already added to an element.
Removed ns-aliasing code where necessary.
xsltCopyProp(): disallowed setting of attribute nodes if
children have been already added to an element.
xsltCopy(): removed the incorrect skipping of attributes in the
XSLT namespace. Removed the incorrect ns-aliasing for attributes.
Changed to use the introduced function xsltShallowCopyAttr().
xsltShallowCopyAttr(): Centralized all attribute-copy related
code in this function. It will now be called by
xsltCopyTreeInternal(), xsltCopyOf() and xsltCopy().
xsltCopyAttrListNoOverwrite(): Renamed. Refactored. Optimized to
use xsltGetSpecialNamespace() and xmlNewDocProp().
Further substitution of various scattered namespace-lookup
related code for the use of xsltGetSpecialNamespace().
xsltAttrTemplateProcess(): Refactored. Removed the incorrect
processing of attribute-sets. Attribute sets need to be applied
before adding any normal attribute of the literal result element;
this is now done in xsltAttrListTemplateProcess(). Fixed to
ensure that the ns-prefix of the overwriting attribute is used.
xsltAttrListTemplateProcess(): Refactored. Moved semantics from
xsltAttrTemplateProcess() over to this function in order to
optimize processing of multiple attributes. This does not call
xsltAttrTemplateProcess() anymore.
Fixed: do not exclude the XSLT namespace after ns-aliasing have
beed applied.
The IFDEFed-out refactored code fixes the following issues:
- #313711: namespace collision with namespace-alias (reported
by by Oleg Paraschenko)
- #338214: Incorrect scope for exclude-result-prefixes
- #341392: Excluding namespace declarations of literal result
elements.
- #341325: Namespace aliasing and resulting namespace prefixes
Already enabled fixes:
- #344183: xsl:copy misses to copy attributes in the XSLT namespace
- #341463: Namespace-alias using #default for result-prefix with no
default namespace in scope
- #313890: namespace collision with xsl:element and xsl:attribute,
reported by Oleg Paraschenko
- #344176: xsl:copy misses to set an element's namespace-URI in
some cases
- #305739: the "name" QName of xsl:element is incorrectly always
resolved to the default namespace
Daniel Veillard [Mon, 12 Jun 2006 14:32:24 +0000 (14:32 +0000)]
more info about --output from Daniel Leidert c.f. #344654 Daniel
* doc/xsltproc.1 doc/xsltproc.xml: more info about --output
from Daniel Leidert c.f. #344654
Daniel
Daniel Veillard [Fri, 9 Jun 2006 13:40:33 +0000 (13:40 +0000)]
Fixing the screwups introduced by amaya, Daniel
Daniel Veillard [Tue, 6 Jun 2006 15:17:10 +0000 (15:17 +0000)]
preparing release of 1.1.17 Daniel
* configure.in libxslt.spec.in doc//*: preparing release of 1.1.17
Daniel
Kasimier T. Buchcik [Tue, 6 Jun 2006 09:47:12 +0000 (09:47 +0000)]
Eliminated a tiny difference wrt to the old behaviour in the naming of
* libxslt/attributes.c: Eliminated a tiny difference wrt to
the old behaviour in the naming of newly generated ns-decls
in xsltAttributeInternal().
Daniel Veillard [Thu, 1 Jun 2006 13:04:44 +0000 (13:04 +0000)]
fix a problem in Python detection Daniel
* configure.in: fix a problem in Python detection
Daniel
Kasimier T. Buchcik [Thu, 1 Jun 2006 12:03:21 +0000 (12:03 +0000)]
Next step in the refactored code: enhanced xsl:attribute; enhanced
* libxslt/attributes.c libxslt/variables.c
libxslt/transform.c libxslt/xslt.c:
Next step in the refactored code: enhanced xsl:attribute;
enhanced xsltCopyProp.
Added the creation of an XPath cache in
xsltNewTransformContext().
Kasimier T. Buchcik [Wed, 31 May 2006 20:39:42 +0000 (20:39 +0000)]
Fixed a difference in processing of xsl:value-of and xsl:text wrt to
* libxslt/transform.c: Fixed a difference in processing of
xsl:value-of and xsl:text wrt to merging of strings of
output-escaped text-nodes. This difference made the
optimized string-merging mechanism run out of sync, which
led to segfaults in subsequent string reallocations. See
bug #343411, reported by Grzegorz Kaczor.
* xslt.c: Added check for ctxt->internalized when we parse
xsl:text and internalize the strings.
Kasimier T. Buchcik [Mon, 22 May 2006 08:56:42 +0000 (08:56 +0000)]
Next tiny step of refactoring - mostly bug fixes and cosmetic changes.
* libxslt/attributes.c libxslt/documents.c
libxslt/extensions.c libxslt/keys.c libxslt/pattern.c
libxslt/preproc.c libxslt/templates.c
libxslt/transform.c libxslt/variables.c
libxslt/xslt.c libxslt/xsltInternals.h:
Next tiny step of refactoring - mostly bug fixes and
cosmetic changes.
Changes outside of the refactored code:
1) Optimized xsl:attribute if the content consists of
just 1 text node.
2) Optimized computation of xsl:key. The keys will now be
computed for a specific document not until the first call
of a key() function; here only the keys with the specific
name used by key() are computed. This means that this
now avoids computation of all keys for all loaded
input documents (even if no key() was called on them).
One exception is the scenario where a key() is used in
a template's match pattern; in this case all keys are
computed for a document if there's a chance that
a "keyed" template could match a node (this could still
be optimized a bit).
Kasimier T. Buchcik [Mon, 15 May 2006 20:35:12 +0000 (20:35 +0000)]
Fixed bug #302020, reported by Thomas Blatter.
* libxslt/namespaces.c libxslt/attributes.c:
Fixed bug #302020, reported by Thomas Blatter.
Kasimier T. Buchcik [Fri, 12 May 2006 21:31:53 +0000 (21:31 +0000)]
Next step of refactoring. For more details see bug #341588. I applied the
* libxslt/documents.c libxslt/namespaces.c
libxslt/preproc.c libxslt/transform.c
libxslt/xslt.c libxslt/xsltInternals.h libxslt/xsltutils.c:
Next step of refactoring. For more details see bug #341588.
I applied the suggestion of Jerome Pesenti to the refactored
(still IDFEDed out with XSLT_REFACTORED) code: The XPath
compilation context (accessible via the compilation context)
is now reused for compilation of expressions at
compilation-time; this should reduce compilation time to 50%
for avarage stylesheets.
Kasimier T. Buchcik [Thu, 11 May 2006 20:18:27 +0000 (20:18 +0000)]
Changed a comment to indicate that a specific bug was already fixed.
* libxslt/extensions.c: Changed a comment to indicate that a
specific bug was already fixed.
Kjartan Maraas [Wed, 10 May 2006 10:45:09 +0000 (10:45 +0000)]
Quiet CVS a bit
Kasimier T. Buchcik [Fri, 5 May 2006 21:18:25 +0000 (21:18 +0000)]
Next step of refactoring (plus some bug-fixes). For more details see
* libxslt/xsltInternals.h libxslt/attributes.c
libxslt/documents.c libxslt/extensions.c
libxslt/extensions.h libxslt/functions.c
libxslt/imports.c libxslt/keys.c libxslt/preproc.c
libxslt/transform.c libxslt/variables.c libxslt/xslt.c
libxslt/xsltutils.c libxslt/xsltutils.h libexslt/functions.c:
Next step of refactoring (plus some bug-fixes).
For more details see #340780.
Kasimier T. Buchcik [Fri, 5 May 2006 12:34:48 +0000 (12:34 +0000)]
Reverting the changes; I'll rather change the processing stylesheet
* tests/exslt/common/node-set.5.out
tests/exslt/sets/difference.1.out
tests/exslt/functions/function.6.out: Reverting the
changes; I'll rather change the processing stylesheet
documents in a way that they will produce the same results
for broken and stricter whitespace-stripping.
Kasimier T. Buchcik [Thu, 4 May 2006 21:03:51 +0000 (21:03 +0000)]
Changed regression test results (bug #340684). Those will now produce
* tests/exslt/common/node-set.5.out
tests/exslt/sets/difference.1.out
tests/exslt/functions/function.6.out: Changed regression test
results (bug #340684). Those will now produce regression
errors; so we need to fix the processor.