xmlcatalog.c

Branch


Log

Author Commit Date CI Message
Nick Wellnhofer 56199b5c 2025-08-17T15:58:09 catalog: Prepare to make SGML catalog support optional
Nick Wellnhofer 591f19eb 2025-08-17T14:35:08 catalog: Deprecate low-level internal functions
Nick Wellnhofer 9bbffec5 2025-05-06T17:42:46 doc: Move brief to top, params to bottom of doc comments
Nick Wellnhofer e549622b 2025-04-28T15:11:24 doc: Convert documentation to Doxygen Automated conversion based on a few regexes.
Nick Wellnhofer 69879da8 2025-04-28T14:04:30 doc: Remove email addresses from documentation Also remove authorship information from generated files, hash.c and globals.c which were rewritten.
Nick Wellnhofer a5764b56 2024-11-21T22:18:36 build: Define XML_SYSCONFDIR in config.h Rename SYSCONFDIR macro to XML_SYSCONFDIR. Use AX_RECURSIVE_EVAL with Autotools. This is GPL v2 with Autoconf exception which shouldn't be a problem. Finally support meson.
Nick Wellnhofer 8625db28 2024-08-19T20:02:47 xmlcatalog: Improved fix for #699
Nick Wellnhofer 6cc2387e 2024-07-24T11:42:39 shell: Only use readline on terminals Should fix xmllint shell tests.
Nick Wellnhofer 2d96adb2 2024-06-22T21:28:40 windows: fopen files with "wb"
Nick Wellnhofer 5589c9ea 2024-06-22T21:01:38 xmllint: Set stdin/stdout to binary on Windows
Nick Wellnhofer 38488027 2024-06-16T21:16:43 xmllint: Support libreadline without history
Nick Wellnhofer 699299ca 2023-09-20T18:54:39 globals: Stop including globals.h
Nick Wellnhofer 886bf4e6 2023-04-30T15:35:47 Stop calling xmlMemoryDump This was used to check for memory leaks but could potentially create a .memdump file. These days, there are better ways to check for memory leaks.
Nick Wellnhofer c9e4c6d4 2023-02-21T15:22:01 catalog: Fix memory leaks Fixes #377.
David Seifert 865520f0 2022-03-30T00:32:35 Respect `--sysconfdir` in source files * Prefix installations need to point to a non-root `etc` - Gentoo Prefix has been patching this for over 10 years: https://bugs.gentoo.org/317891 - MacPorts has to manually replace paths after patching: https://github.com/macports/macports-ports/blob/cc3bb736e906abe73b014da02a89ae2b70ef6295/textproc/libxml2/Portfile#L46
Nick Wellnhofer 776d15d3 2022-03-02T00:29:17 Don't check for standard C89 headers Don't check for - ctype.h - errno.h - float.h - limits.h - math.h - signal.h - stdarg.h - stdlib.h - string.h - time.h Stop including non-standard headers - malloc.h - strings.h
David King 91b3d3f9 2021-07-14T17:12:11 Remove duplicated code in xmlcatalog Found by Coverity. https://bugzilla.redhat.com/show_bug.cgi?id=1938806
Nick Wellnhofer 20c60886 2020-03-08T17:19:42 Fix typos Resolves #133.
Jan Pokorný 6b780f65 2017-10-19T13:27:29 xmlcatalog: restore ability to query system catalog easily I've noticed that easy way of locating a DocBook XSLT in a configure script of another project doesn't work anymore. It is using something like: xmlcatalog "" ${DOCBOOK_XSL_URI}/${DOCBOOK_XSL_PATH}. The script is then forced to a plain, suboptimal search using find utility. Indeed, I retrospectively realize that the check was working just by mere accident given that the window this presumably side-effect was applicable had not lasted long, some 8 months between 054c716ea1bf001544127a4ab4f4346d1b9947e7 introducing xmlInitializeCatalog in the LIBXML_TEST_VERSION-rooted call chain, and f65128f38289d77ff322d63aef2858cc0a819c34 reverting that again. So while one can state /etc/xml/catalog constant explicitly, in some use cases (such as the mentioned one -- that's why I wanted to omit stating the full path in the first place), this is rather an implementation detail, perhaps subject to change from that POV. Therefore I propose to restore that behaviour in the targeted manner without global disruptions this time around. As a side-effect, this fixes indenting of the affected part.
Patrick Monnerat 2137326e 2015-04-20T15:00:58 xmlcatalog: flush stdout before interactive shell input.
Philip Withnall 7746f2f6 2014-06-20T21:05:33 xmlcatalog: Fix a memory leak on quit Coverity issue: #60442 https://bugzilla.gnome.org/show_bug.cgi?id=731990
Daniel Veillard f8e3db04 2012-09-11T13:26:36 Big space and tab cleanup Remove all space before tabs and space and tabs at end of lines.
Daniel Veillard 13cee4e3 2009-09-05T14:52:55 Fix a bunch of scan 'dead increments' and cleanup * HTMLparser.c c14n.c debugXML.c entities.c nanohttp.c parser.c testC14N.c uri.c xmlcatalog.c xmllint.c xmlregexp.c xpath.c: fix unused variables, or unneeded increments as well as a couple of space issues * runtest.c: check for NULL before calling unlink()
Daniel Veillard 11ce4004 2006-03-10T00:36:23 end of first pass on coverity reports. Daniel * runtest.c schematron.c testAutomata.c tree.c valid.c xinclude.c xmlcatalog.c xmlreader.c xmlregexp.c xpath.c: end of first pass on coverity reports. Daniel
William M. Brack b7b54de6 2004-10-06T16:38:01 added code to handle <group>, including dumping to output (bug 151924). * catalog.c: added code to handle <group>, including dumping to output (bug 151924). * xmlcatalog.c, xmlstring.c, parser.c: minor compiler warning cleanup (no change to logic)
Daniel Veillard 1f8658a7 2004-08-14T21:46:31 Dodji pointed out a bug in xmlGetNodePath() applied patch from Albert Chin * tree.c: Dodji pointed out a bug in xmlGetNodePath() * xmlcatalog.c: applied patch from Albert Chin to add a --no-super-update option to xmlcatalog see #145461 and another patch also from Albert Chin to not crash on -sgml --del without args see #145462 * Makefile.am: applied another patch from Albert Chin to fix a problem with diff on Solaris #145511 * xmlstring.c: fix xmlCheckUTF8() according to the suggestion in bug #148115 * python/libxml.py: apply fix from Marc-Antoine Parent about the errors in libxml(2).py on the node wrapper #135547 Daniel
Daniel Veillard cccd4a05 2004-03-04T14:02:13 allow fallback to URI lookup when SYSTEM fails, should close #134092 * xmlcatalog.c: allow fallback to URI lookup when SYSTEM fails, should close #134092 Daniel
Daniel Veillard efe6c74d 2003-12-12T14:56:03 applied patch from Stefan Kost Daniel * xmlcatalog.c: applied patch from Stefan Kost Daniel
Daniel Veillard a9cce9cd 2003-09-29T13:20:24 Okay this is scary but it is just adding a configure option to disable * HTMLtree.c SAX2.c c14n.c catalog.c configure.in debugXML.c encoding.c entities.c nanoftp.c nanohttp.c parser.c relaxng.c testAutomata.c testC14N.c testHTML.c testRegexp.c testRelax.c testSchemas.c testXPath.c threads.c tree.c valid.c xmlIO.c xmlcatalog.c xmllint.c xmlmemory.c xmlreader.c xmlschemas.c example/gjobread.c include/libxml/HTMLtree.h include/libxml/c14n.h include/libxml/catalog.h include/libxml/debugXML.h include/libxml/entities.h include/libxml/nanohttp.h include/libxml/relaxng.h include/libxml/tree.h include/libxml/valid.h include/libxml/xmlIO.h include/libxml/xmlschemas.h include/libxml/xmlversion.h.in include/libxml/xpathInternals.h python/libxml.c: Okay this is scary but it is just adding a configure option to disable output, this touches most of the files. Daniel
Daniel Veillard 4432df23 2003-09-28T18:58:27 cleanup, creating a new legacy.c module, made sure make tests ran in * Makefile.am: cleanup, creating a new legacy.c module, made sure make tests ran in reduced conditions * SAX.c SAX2.c configure.in entities.c globals.c parser.c parserInternals.c tree.c valid.c xlink.c xmlIO.c xmlcatalog.c xmlmemory.c xpath.c xmlmemory.c include/libxml/xmlversion.h.in: increased the modularization, allow to configure out validation code and legacy code, added a configuration option --with-minimum compiling only the mandatory code which then shrink to 200KB. Daniel
William M. Brack c193956e 2003-08-05T15:52:22 small changes to syntax to get rid of compiler warnings. No changes to * error.c HTMLparser.c testC14N.c testHTML.c testURI.c xmlcatalog.c xmlmemory.c xmlreader.c xmlschemastypes.c python/libxml.c include/libxml/xmlmemory.h: small changes to syntax to get rid of compiler warnings. No changes to logic.
Daniel Veillard 3be27518 2003-01-26T19:49:04 applied patch for FreeBSD by Julio Merino, closing #104475 Daniel * xmlcatalog.c xmllint.c: applied patch for FreeBSD by Julio Merino, closing #104475 Daniel
Daniel Veillard 9cdcf36e 2002-10-22T14:23:59 tried to fix some of the problem with --sgml Daniel * xmlcatalog.c: tried to fix some of the problem with --sgml Daniel
Daniel Veillard 9e537937 2002-03-21T13:08:08 applied 2 fixups from Igor Daniel * xmlcatalog.c include/libxml/xmlversion.h.in: applied 2 fixups from Igor Daniel
Daniel Veillard 34ce8bec 2002-03-18T19:37:11 preparing 2.4.18 updated and rebuilt the web site implement the new * configure.in: preparing 2.4.18 * doc/*: updated and rebuilt the web site * *.c libxml.h: implement the new IN_LIBXML scheme discussed with the Windows and Cygwin maintainers. * parser.c: humm, changed the way the SAX parser work when xmlSubstituteEntitiesDefault(1) is set, it will then do the entity registration and loading by itself in case the user provided SAX getEntity() returns NULL. * testSAX.c: added --noent to test the behaviour. Daniel
Daniel Veillard 0f5f162e 2002-01-20T12:42:06 Fixed bug #68830, xmlcatalog now provides return codes in case of errors * doc/xmlcatalog_man.xml xmlcatalog.c: Fixed bug #68830, xmlcatalog now provides return codes in case of errors Daniel
Daniel Veillard 572577e0 2002-01-18T16:23:55 removed the last occurences of strdup usage in the code Daniel * globals.c xmlIO.c xmlcatalog.c: removed the last occurences of strdup usage in the code Daniel
Daniel Veillard cbaf3995 2001-12-31T16:16:02 applied 42 documentation patches from Charlie Bozeman. Regenerated the * *.c include/libxml/*.h doc/html/*: applied 42 documentation patches from Charlie Bozeman. Regenerated the HTML docs. Daniel
Daniel Veillard 6eb17724 2001-11-04T22:19:27 avoid unlink() and use remove() instead. Daniel * xmlcatalog.c: avoid unlink() and use remove() instead. Daniel
Daniel Veillard cd21dc78 2001-11-04T20:03:38 Fixed SGML catalogs breakage of 2.4.7, added a couple of really needed * include/libxml/catalog.h catalog.c: Fixed SGML catalogs breakage of 2.4.7, added a couple of really needed APIs like xmlCatalogIsEmpty() and xmlNewCatalog() * xmlcatalog.c: updated --sgml --noout to be a suitable replacement for install-catalog * configure.in: preparing 2.4.8 Daniel
Daniel Veillard 3c01b1d8 2001-10-17T15:58:35 - include/libxml/globals.h include/libxml/threads.h threads.c testThreads.c: far more testing, cleaning up bugs - *.c : make sure globals.h is always included. Daniel
Daniel Veillard b847864f 2001-10-12T17:29:10 started integrating the core of the thread support not activated yet but * Makefile.am include/libxml/Makefile.am include/libxml/globals.h globals.c include/libxml/threads.h threads.c build_glob.py global.data xmlcatalog.c acconfig.h configure.in: started integrating the core of the thread support not activated yet but half integrated. The code should still compile and work anyway. Daniel
Daniel Veillard 82d75338 2001-10-08T15:01:59 adding SGML super catalog support adding one API and one flag --sgml to * include/libxml/catalog.h catalog.c xmlcatalog.c: adding SGML super catalog support adding one API and one flag --sgml to xmlcatalog Daniel
Daniel Veillard c0631a60 2001-09-20T13:56:06 removed a couple of warning try to solve the linking problem on platforms * catalog.c xmlcatalog.c: removed a couple of warning * xpath.c: try to solve the linking problem on platforms needing trio to compile Daniel
Daniel Veillard 6c5f9d14 2001-08-25T13:33:14 added a --convert option to xmlcatalog to convert SGML ones to the XML * include/libxml/catalog.h catalog.c xmlcatalog.c: added a --convert option to xmlcatalog to convert SGML ones to the XML syntax. * xmllint.c: small cleanup for $SGML_CATALOG_FILES support. Daniel
Daniel Veillard e7ead2d2 2001-08-22T23:44:09 added documentation about Catalog support, misses an API description * doc/catalog.html doc/xml.html: added documentation about Catalog support, misses an API description * doc/html/*: reextracted the API pages Daniel
Daniel Veillard e2940ddb 2001-08-22T00:06:49 starts to look okay, really plugged the new framework, cleaned a lot of * catalog.c parser.c xmlIO.c xmlcatalog.c xmllint.c include/libxml/catalog.h: starts to look okay, really plugged the new framework, cleaned a lot of stuff, added some APIs, except the PI's support missing this should be mostly complete * result/catalogs/* test/catalogs/*: added new test, enriched the existing one with URN ID tests Daniel
Daniel Veillard cda96921 2001-08-21T10:56:31 more work on the XML catalog support. small cleanup seems using list as a * Makefile.am catalog.c xmlcatalog.c include/libxml/catalog.h: more work on the XML catalog support. * parser.c include/libxml/parser.h: small cleanup seems using list as a public parameter name can give portability troubles * trionan.c trionan.h xpath.c include/libxml/trionan.h include/libxml/xpath.h include/libxml/Makefile.am: removed trionan from the libxml API, added xmlXPathIsInf and xmlXPathIsNaN wrappers Daniel
Bjorn Reese 45029607 2001-08-21T09:23:53 Re-worked NaN and Inf support
Daniel Veillard 344cee76 2001-08-20T00:08:40 renaming testCatalog as xmlcatalog, making it an installed app adding a * Makefile.am xmlcatalog.c libxml.spec.in: renaming testCatalog as xmlcatalog, making it an installed app adding a shell, and preparing it to be a /etc/xml/catalog management tool, though not ready yet * catalog.c include/libxml/catalog.h: adding support for XML Catalogs http://www.oasis-open.org/committees/entity/ not finished, there is some interesting tradeoffs and a few open questions left. Daniel