Nick Wellnhofer
d20f7ab817
Suppress automake warning in tests/XSLTMark
...
The "html" target is overridden deliberately.
2020-12-07 11:29:38 +01:00
Markus Rickert
2dac1681d9
Require dependencies based on enabled CMake options
2020-11-30 20:45:04 +01:00
Markus Rickert
6b94c01770
Use config mode for package LibXml2 in config file
2020-11-30 20:28:00 +01:00
Markus Rickert
94b755935c
Add required MinGW-w64 packages for libxml2 to CI
2020-11-30 12:55:39 +01:00
Markus Rickert
24a15d5662
Use NAMELINK_COMPONENT in CMake install
2020-11-30 11:14:45 +01:00
Markus Rickert
b45a8d3e22
Add CI for CMake on Linux and MinGW
2020-11-30 11:12:34 +01:00
Markus Rickert
95714adb01
Use config mode for package LibXml2
2020-11-30 11:12:26 +01:00
Vadim Zeitlin
651bbcb656
Fix linking libexslt dynamic library when using MinGW
...
DLLs can't have unresolved symbols, so we need to link it with libxml2,
as it references plenty of symbols from it.
2020-11-19 18:13:25 +01:00
Nick Wellnhofer
f8664f61aa
Add CI test for Python 3
2020-11-19 18:09:52 +01:00
Nick Wellnhofer
b3076bccdb
Finish and clean up Python 3 support
...
- Handle Python 3 types similar to libxml2
- Copy new versions of libxml_xmlXPathDestructNsNode and
libxml_xmlXPathObjectPtrConvert from libxml2
- Fix compiler warnings
- Fix whitespace
- Remove unneeded imports from __future__
- Remove test in extelem.py (StringIO can't be converted to FILE under
Python 3)
- string.lower() works in both Python 2 and 3
Closes #25 .
2020-11-19 17:59:37 +01:00
Suleyman Poyraz
a2db8da1ac
Initial support for Python 3
...
Squashed merge of pull request !19 .
2020-11-19 17:08:37 +01:00
Dmitriy Korovkin
2c20c70cd8
Added platform specific path separators
...
Add path separator symbol for Win32 (;) different from other
platforms (:). The commit is supposed to fix the problem when drive
letters on Windows are interpreted as separate directories.
2020-09-20 17:01:51 +02:00
Nick Wellnhofer
f165525fe7
Recreate xsltproc man page with old Docbook stylesheet URL
...
Fixes #31 .
2020-09-20 16:59:23 +02:00
Nick Wellnhofer
9d0318519a
Add missing options to man page
2020-09-20 16:59:05 +02:00
Will Braswell
1ca66bf406
Add --huge Argument via libxml XML_PARSE_HUGE
2020-09-20 16:33:22 +02:00
Nick Wellnhofer
4ccc06b56b
Fix quadratic runtime with text and <xsl:message>
...
Backup and restore "last text" data in xsltEvalTemplateString.
Otherwise, optimization of string concatenation would be disabled
whenever an xsl:message was processed.
Found by OSS-Fuzz.
2020-09-20 16:22:03 +02:00
Nick Wellnhofer
5b822f6369
Revert "Remove unnecessary .orig files"
...
This reverts commit 1e2b460488 .
These are actual test result files with an .orig extensions, not
leftovers from a patch application.
2020-08-26 00:41:09 +02:00
Nick Wellnhofer
77c26bad04
Don't set maxDepth in XPath contexts
...
The maximum recursion depth is hardcoded in libxml2 now.
2020-08-26 00:34:38 +02:00
Nick Wellnhofer
824657768a
Transfer XPath limits to XPtr context
...
Expressions like document('doc.xml#xpointer(evil_expr)') ignored the
XPath limits.
2020-08-17 04:27:13 +02:00
Nick Wellnhofer
9ae2f94df1
Stop using maxParserDepth XPath limit
...
This will be removed again from libxml2.
2020-08-17 03:42:11 +02:00
Markus Rickert
0129fe4224
Set project language to C
2020-07-12 18:40:57 +02:00
Markus Rickert
18ae2b0b76
Update config.h.cmake.in
2020-07-12 18:40:18 +02:00
Markus Rickert
a59b1d823c
Set working directory for Python generator
2020-07-12 18:40:14 +02:00
Nick Wellnhofer
ea1c27fca2
Add test for issue #37
...
This requires a recent version of libxml2 with commit libxml2@9f42f6ba.
2020-06-24 16:18:30 +02:00
Suleyman Poyraz
1e2b460488
Remove unnecessary .orig files
2020-06-22 13:57:09 +02:00
Nick Wellnhofer
6c2393e2ad
Make long-to-double cast explicit in date.c
...
Fixes -Wimplicit-int-float-conversion warnings.
Closes #41 .
2020-06-22 13:37:11 +02:00
Nick Wellnhofer
5589b3688c
Don't allow empty durations
...
"However, at least one number and its designator must be present."
2020-06-22 13:28:17 +02:00
Markus Rickert
e68b39eaee
Use LIBEXSLT_DOTTED_VERSION for exsltconfig.h.in and libexslt
2020-05-04 18:27:09 +02:00
Nick Wellnhofer
cb3ccdd547
Disable LeakSanitizer
...
The GitLab runner doesn't run in privileged mode anymore [1], at least
for projects outside the GNOME group. Disable LeakSanitizer for now
as it needs the ptrace capability.
[1] https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/251
2020-05-04 15:21:11 +02:00
Nick Wellnhofer
356246a928
win32: allow passing *FLAGS on command line
2020-05-04 15:07:28 +02:00
Markus Rickert
4045ed4b05
Use LIBEXSLT_VERSION for LIBEXSLT_DOTTED_VERSION
2020-05-04 14:51:37 +02:00
Markus Rickert
d51dda321b
Add CMake build files
2020-05-04 14:50:06 +02:00
David Kilzer
0141e19eef
Fix export of xsltExtMarker on Windows
...
* libxslt/preproc.h:
(xsltExtMarker): Change `extern` to `XSLTPUBVAR` so this
variable is exported consistently on all platforms. This
regressed in commit 44496bf3e .
2020-02-11 11:02:00 +01:00
David Kilzer
53174e798d
Fix redundant includes already in libexslt.h
...
Remove includes of "config.h", <libxslt/xsltconfig.h> and
<libxml/xmlversion.h> in libexslt C sources since they are
already included with "libexslt/libexslt.h".
2020-02-11 11:01:09 +01:00
Nick Wellnhofer
7357f29c3a
Minor fixes to configure.js
...
- Declare local variables
- Semicolon coding style
- Remove duplicated option check
Found by lgtm.com
2020-01-10 18:36:23 +01:00
Nick Wellnhofer
95ed644514
Run clang CI tests with -Wimplicit-int-conversion
2020-01-10 13:29:32 +01:00
Nick Wellnhofer
f235404b13
Fix implicit-int-conversion warning in exslt/crypto.c
2020-01-10 13:11:45 +01:00
David Kilzer
aac4bccdd8
Fix clang -Wimplicit-int-conversion warning
...
* libxslt/numbers.c:
(xsltNumberFormatDecimal): Cast `val` to `(xmlChar)` to fix the
warning.
2020-01-10 13:08:57 +01:00
David Kilzer
291d190b3d
Fix clang -Wconditional-uninitialized warning in libxslt/numbers.c
...
* libxslt/numbers.c:
(xsltFormatNumberConversion): Initialize `len` to fix warning.
2020-01-10 13:08:13 +01:00
David Kilzer
4d9bfef22f
Fix -Wshadow warnings in libexslt/dynamic.c
...
* configure.ac: Enable -Wshadow for all builds.
* libexslt/dynamic.c:
(exsltDynMapFunction): Rename `cur` to `newChildNode` to fix
shadow variable warnings.
Closes #29 .
2020-01-10 13:05:32 +01:00
Nick Wellnhofer
b90e1063a8
Fix variable syntax in Python configuration
...
Resolves #30 .
2020-01-10 12:58:35 +01:00
Nick Wellnhofer
db4b4e56f0
Also search parent dir for source XML when fuzzing
...
This should solve problems when fuzzing a shared library build where
binaries are placed in .libs.
2020-01-10 12:56:13 +01:00
Nick Wellnhofer
5b1a24d44a
Add new EXSLT string tests to EXTRA_DIST
2019-11-28 12:50:09 +01:00
Afonso Bordado
87735e0033
Add EXSLT str:encode-uri and str:decode-uri tests
2019-11-28 12:48:07 +01:00
Nick Wellnhofer
1db044d91d
Add new general tests to EXTRA_DIST
2019-11-15 12:08:53 +01:00
Nick Wellnhofer
90c34c8bb9
Fix xml2-config check in configure script
...
A 'print' option has never been supported. After a recent change to
libxml2, invalid options cause xml2-config to fail.
2019-11-15 11:53:11 +01:00
Chun-wei Fan
e2584eed1c
win32: Add configuration for profiler
...
Without this the generated xsltconfig.h will not be complete as there
will be a configuration variable that is left in the header, breaking
builds.
This will allow one to enable or disable profiler support in Windows
builds, and the default is to enable this.
2019-11-15 11:50:32 +01:00
Nick Wellnhofer
bde9dc85b3
Check whether 'xml2-config --dynamic' is supported
...
Fixes build with older libxml2 versions.
Closes #22 .
2019-11-11 12:15:04 +01:00
Daniel Veillard
3653123f99
Release of libxslt-1.1.34
...
* configure.ac doc/xslt.html: updated for the release
* doc/libxslt.xsa doc/news.html doc/xsltproc.1 libxslt/xsltwin32config.h:
regenerated for the release
v1.1.34
2019-10-30 21:02:43 +01:00
Nikolai Weibull
e3577d4897
xsl:template without name and match attributes should not be allowed
...
libxslt allows for an xsl:template to be created without name or match attribute. This isn’t allowed by the standard and sometimes my colleagues forget and then wonder why things don’t work :-).
A simple check in xsltAddTemplate would suffice, for example,
v1.1.34-rc2
2019-10-28 09:10:35 +01:00