1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-04-19 05:42:15 +03:00

103 Commits

Author SHA1 Message Date
Nick Wellnhofer
33ac060d01 xsltproc: Remove unneeded includes 2024-06-16 16:09:51 +02:00
Nick Wellnhofer
16f3d7c495 xsltproc: Make "-" read from stdin
This broke after libxml2@0a658c0f.

Fixes #109.
2024-06-14 16:32:17 +02:00
Nick Wellnhofer
0f1f2c361c xsltproc: Stop calling xmlMemoryDump
Memory dumps were removed from libxml2.
2024-06-12 18:43:48 +02:00
Nick Wellnhofer
1cd62538c3 xsltproc: Prefer XML_PARSE_NONET over xmlNoNetEntityLoader 2024-06-10 23:09:28 +02:00
Mike Dalessio
75967fc012
xsltproc: remove maxparserdepth option
libxml2 commit a2cc7f5f removed the ability to dynamically set the max
parser depth.
2024-01-03 09:57:24 -05:00
Nick Wellnhofer
1c0b183dfd xsltproc: Fix unused variable warning 2022-09-06 17:32:01 +02:00
Nick Wellnhofer
74e87f96aa Remove useless __CYGWIN__ checks 2022-03-31 01:55:29 +02:00
Nick Wellnhofer
dd16508642 Don't check for standard C89 headers
Also stop including non-standard headers.
2022-03-31 01:50:51 +02:00
Nick Wellnhofer
22f12ce58e Stop calling deprecated libxml2 init functions 2022-03-18 15:38:40 +01:00
Nick Wellnhofer
05cea0c72c Update links
Documentation and releases are now available on gitlab.gnome.org.
2022-02-14 22:31:18 +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
Will Braswell
1ca66bf406 Add --huge Argument via libxml XML_PARSE_HUGE 2020-09-20 16:33:22 +02:00
Nick Wellnhofer
9210e72590 Fix typos
Fixes bug 788668.
2017-11-04 16:07:59 +01:00
Nick Wellnhofer
0beb813d64 Use _WIN32 macro instead of WIN32
_WIN32 is defined automatically by the compiler.
2017-10-25 18:22:52 +02:00
Nick Wellnhofer
ba764e239b Fix xsltproc newlines on Windows
Set stdout and stderr to binary.
2017-10-25 16:34:14 +02:00
Nick Wellnhofer
8760bb2276 Fix Windows compiler warnings
Fixes bug 788317. Thanks to J. Peter Mugaas for the initial patch.
2017-10-25 16:21:23 +02:00
Nick Wellnhofer
891681e3e9 Allow {URI}NCName syntax for user parameters
Thanks to Richard Smith <richard@ex-parrot.com> for the patch. Applied
with minor changes.

Fixes bug #764195.

https://bugzilla.gnome.org/show_bug.cgi?id=764195
2016-03-28 16:05:26 +02:00
Nick Wellnhofer
8137d94d1a Fix endTimer parameter type 2016-03-28 15:33:03 +02:00
David Kilzer
866fc3b67e Fix libxslt format warnings
* config.h.in: Let autoconf have its way with the file.
* configure.in: Replace "-Wformat" with
"-Wformat=2 -Wmissing-format-attribute".  Add
"-Wformat=2 -Wmissing-format-attribute" to default CFLAGS.
* libxslt/transform.c:
(xsltDocumentElem): Fix missing placeholder in format string.
Make "unsupported method" format strings more consistent by
putting method name in parenthesis.
(xsltApplyStylesheetInternal): Ditto.
* libxslt/xsltconfig.h.in:
(LIBXSLT_ATTR_FORMAT): Add macro to decorate functions that
have format string arguments.
* libxslt/xsltutils.c:
(xsltGenericErrorDefaultFunc): Add macro to decorate functions
that have format string arguments.
(xsltGenericDebugDefaultFunc): Ditto.
* libxslt/xsltutils.h:
(xsltTransformError): Add LIBXSLT_ATTR_FORMAT macro.
* xsltproc/xsltproc.c:
(endTimer): Add predeclaration with LIBXSLT_ATTR_FORMAT macro.

Fixes bug #762006.

https://bugzilla.gnome.org/show_bug.cgi?id=762006
2016-03-28 15:23:09 +02:00
Nick Wellnhofer
7219c6c3ee Enforce two digit exponent under MSVC
This makes the test output match UNIX.
2016-02-25 14:53:12 +01:00
Nick Wellnhofer
e75b5da121 Correctly emulate snprintf on older MSVC versions
This uses the code taken from http://stackoverflow.com/a/8712996/1956010

Fixes bug #756691
https://bugzilla.gnome.org/show_bug.cgi?id=756691
2016-02-25 14:46:58 +01:00
mahendra.n
66520a2cc0 Fix possible NULL pointer deref in xsltproc.c
Fixes bug #757618.

https://bugzilla.gnome.org/show_bug.cgi?id=757618
2015-12-13 18:55:11 +01:00
Daniel Veillard
73e08bf7c3 Visual Studio 14 CTP defines snprintf()
Related to https://bugzilla.gnome.org/show_bug.cgi?id=737937
related changes for libxslt
2014-10-13 15:17:30 +08:00
Per Hedeland
5af7ad7453 Make --maxvars option work 2013-12-13 14:45:29 +01:00
Imran Azeezullah
02b30799fe Fix for bug 436589
https://bugzilla.gnome.org/show_bug.cgi?id=436589

Need to check availablility of argument before scanning it
2013-09-30 10:18:03 +08:00
Nils Werner
3fcf11ead6 Initialize pseudo random number generator with current time or optional command line parameter 2013-02-19 21:17:48 +08:00
Daniel Veillard
90e8b9066d Fix a couple of places where (f)printf parameters were broken
As reported by Thomas Jarosch <thomas.jarosch@intra2net.com>
2013-01-30 17:31:37 +01:00
Michael Bonfils
9e5d4dc5c0 xincludestyle wasn't protected with LIBXML_XINCLUDE_ENABLED
Leading to possible compilation issue if this isn't in libxml2
2012-08-16 17:46:29 +08:00
Malcolm Purvis
e669a8c7ce 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.
2012-08-16 17:08:31 +08:00
Daniel Veillard
8785a2ffd0 Cleanup some misplaced spaces and tabs 2012-03-22 10:35:14 +08:00
Jérôme Carretero
adff7c36bd Allow per-context override of xsltMaxDepth, introduce xsltMaxVars
We also add a maxTemplateVars parameter
2012-03-20 21:18:59 +08:00
Daniel Mustieles
a2e32666e0 Fixed bug #616839 2012-03-19 21:46:45 +01:00
Joachim Breitner
ae2380fe27 567192 xsltproc --output option ignore --xinclude
* xsltproc/xsltproc.c: the option was not activating XInclude nor
  passing parser flags
2009-08-23 14:58:13 +02:00
Daniel Veillard
f113790a2d 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
2007-08-23 12:20:49 +00:00
William M. Brack
e1b7da0c1f 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
2007-01-11 19:12:45 +00:00
Daniel Veillard
f32d5c181d 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
2006-10-11 21:19:49 +00:00
Daniel Veillard
e810227aff 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
2006-10-11 20:28:25 +00:00
Daniel Veillard
96f2cda8a7 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
2006-08-21 08:46:05 +00:00
Daniel Veillard
c73d033283 --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
2006-08-16 15:33:13 +00:00
Igor Zlatkovic
c4263a8233 Windows build cleanup, removed obsolete macro definitions 2005-04-06 22:02:14 +00:00
Daniel Veillard
23936b6bb8 fixed the xinclude problem with document() as in bug #171893 added a new
* xsltproc/xsltproc.c: fixed the xinclude problem with document()
  as in bug #171893
* configure.in tests/Makefile.am tests/xinclude/*: added a new
  xinclude directory with the test for this problem
Daniel
2005-03-30 12:12:53 +00:00
Daniel Veillard
7eebda2dde working around Mark Vakoc' reported bug related to mode internaing adding
* libxslt/transform.c: working around Mark Vakoc' reported bug related
  to mode internaing
* xsltproc/xsltproc.c: adding a --nodict mode to check problems with
  document without a dictionnary.
* tests/REC/Makefile.am tests/general/Makefile.am: testing without
  dictionnary
Daniel
2005-03-29 19:07:56 +00:00
Daniel Veillard
b50ceb3058 applied patch from Aleksey Gurtovoy moving some stat() definition for
* libxslt/security.c xsltproc/xsltproc.c: applied patch from
  Aleksey Gurtovoy moving some stat() definition for Windows
  to the right place.
Daniel
2004-12-01 09:48:12 +00:00
Daniel Veillard
09b6bb82b3 implemented --nodtdattr to avoid defaulting DTD attributes, RFE 150311 .
* xsltproc/xsltproc.c: implemented --nodtdattr to avoid defaulting
  DTD attributes, RFE 150311 . Also cleanup the code from all
  libxml2 pre 2.6.0 specific code since we are using
  LIBXML_REQUIRED_VERSION=2.6.8 in configure.in
Daniel
2004-08-17 22:20:30 +00:00
William M. Brack
22570c760b added check for state XSLT_STATE_STOPPED when output file is used (bug
* xsltproc/xsltproc.c: added check for state XSLT_STATE_STOPPED
  when output file is used (bug 137341)
2004-03-17 10:51:06 +00:00
Daniel Veillard
6d8811b0de fixed #129327 make sure parser flags get transmitted to the transformation
* xsltproc.c: fixed #129327 make sure parser flags get transmitted to
  the transformation context
* libxslt/documents.c libxslt/transform.c libxslt/xsltInternals.h
  libxslt/xsltutils.c libxslt/xsltutils.h: add a new call
  xsltSetCtxtParseOptions() to update parsing options in document()
Daniel
2003-12-21 12:21:17 +00:00
Daniel Veillard
4d91881021 upp'ed the dependancy to libxml2-2.6.3 fixed #127473 by using the new
* configure.in: upp'ed the dependancy to libxml2-2.6.3
* libxslt/documents.c xsltproc/xsltproc.c: fixed #127473
  by using the new XInclude APIs provided by 2.6.3...
Daniel
2003-12-10 15:15:26 +00:00
Daniel Veillard
c05457fa41 switch to use xmlReadfile instead of xmlParseFile, this avoid relying on
* libxslt/documents.c libxslt/imports.c libxslt/xslt.c libxslt/xslt.h
  xsltproc/xsltproc.c: switch to use xmlReadfile instead of
  xmlParseFile, this avoid relying on global parser options, far
  far cleaner.
* tests/XSLTMark/xslbench1.out tests/general/bug-90.out: fixes a
  slightly corrected output for CDATA and STYLE element save.
Daniel
2003-10-31 14:56:30 +00:00
Daniel Veillard
eb955f5fe1 bump the libxml2 require to 2.6.0 which should ship for good real soon...
* configure.in: bump the libxml2 require to 2.6.0 which
  should ship for good real soon...
* doc/Makefile.am: fix installation of HTML pages
* doc/libxslt-api.xml: rebuilt
* libxslt/xsltexports.h: cleanup
* python/generator.py: ATTRIBUTE_UNUSED is after the parameter
* xsltproc/xsltproc.c: applied Crutcher Dunnavant --load-trace patch 2
Daniel
2003-10-19 21:35:47 +00:00
William M. Brack
1133731a3e minor cleanup for various compilation warnings (AIX as well as gcc)
* libxslt/numbers.c, libxslt/extensions.c, libexslt/date.c,
  python/libxslt.c, xsltproc/xsltproc.c: minor cleanup for
  various compilation warnings (AIX as well as gcc)
2003-09-28 01:45:49 +00:00