1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-20 13:57:22 +03:00

81 Commits

Author SHA1 Message Date
Daniel Veillard
75bb3bbf25 added --schema option to run WXS schema validation tried to improve error
* xmllint.c: added --schema option to run WXS schema validation
* xmlschemas.c xmlschemastypes.c include/libxml/schemasInternals.h:
  tried to improve error reporting in the Schema code, some cleanup
  too.
Daniel
2003-05-12 15:25:56 +00:00
Daniel Veillard
37fc84d155 fixing bug #104081 with xs:all with an element holding minOccurs="0" added
* xmlschemas.c: fixing bug #104081 with xs:all with an element
  holding minOccurs="0"
* test/schemas/all_* result/schemas/all_*: added some regression
  tests for that bug
* xmllint.c xmlreader.c: patches from Joerg Schmitz-Linneweber and
  Garry Pennington to compile without schemas support.
Daniel
2003-05-09 19:38:15 +00:00
Daniel Veillard
a880b12475 a lot of performance work especially the speed of streaming through the
* globals.c libxml.h parser.c parserInternals.c tree.c xmllint.c
  xmlreader.c include/libxml/parser.h: a lot of performance work
  especially the speed of streaming through the reader and push
  interface. Some thread related optimizations. Nearly doubled the
  speed of parsing through the reader.
Daniel
2003-04-21 21:36:41 +00:00
Daniel Veillard
ce192eb8a6 more work on RelaxNG streaming validation trying to improve the subset
* relaxng.c xmllint.c: more work on RelaxNG streaming validation
  trying to improve the subset compiled, and more testing.
* doc/downloads.html doc/xml.html doc/xmlmem.html: some updates on the
  documentation
* test/relaxng/tutor11_1_3.xml: fixes the DTD path
* result/relaxng/*.err: fix some of the outputs
Daniel
2003-04-16 15:58:05 +00:00
Daniel Veillard
f4e5576f8f implemented streaming of RelaxNG (when possible) on top of the xmlReader
* relaxng.c xmlreader.c xmllint.c include/libxml/relaxng.h
  include/libxml/xmlreader.h: implemented streaming of
  RelaxNG (when possible) on top of the xmlReader interface,
  provided it as xmllint --stream --relaxng .rng .xml
  This seems to mostly work.
* Makefile.am: updated to test RelaxNG streaming
Daniel
2003-04-15 23:32:22 +00:00
Daniel Veillard
f6bad798cf make sure xmllint --stream and xmllint --stream --valid returns errors
* xmllint.c xmlreader.c include/libxml/xmlreader.h: make sure
  xmllint --stream and xmllint --stream --valid returns errors
  code appropriately
Daniel
2003-04-11 19:38:54 +00:00
Daniel Veillard
99737f5053 Fixed validation bug #108858 on namespace names using entities and
* SAX.c: Fixed validation bug #108858 on namespace names using
  entities and reported by Brent Hendricks
* xmllint.c: report xmlTextReaderHasValue() result in --stream
  --debug output.
Daniel
2003-03-22 14:55:50 +00:00
Aleksey Sanin
693c9bc11f use XMLLING_INDENT environment variable to control indentation for the xmllint "--format" option 2003-03-09 22:36:52 +00:00
Daniel Veillard
42f12e99d1 after and exchange with James Clark it appeared I had bug in URI parsing
* test/xsdtest/xsdtest.xml uri.c: after and exchange with James
  Clark it appeared I had bug in URI parsing code ...
* relaxng.c include/libxml/relaxng.h: completely revamped error
  reporting to not loose message from optional parts.
* xmllint.c: added timing for RNG validation steps
* result/relaxng/*: updated the result, all error messages changed
Daniel
2003-03-07 18:32:59 +00:00
Daniel Veillard
ef4d3bc36c I f...ed up the default configuration of schemas and --relaxng option
* configure.in xmllint.c: I f...ed up the default configuration
  of schemas and --relaxng option display in xmllint, pointed by
  Morus Walter.
* xlink.c: Sean Chittenden pointed a couple of errors in the XLink
  detection module, fixes bug #105374.
Daniel
2003-02-07 12:38:22 +00:00
Daniel Veillard
71531f3345 comments cleanups use xmllint for doing the RelaxNG tests preparing 2.5.2
* HTMLparser.c tree.c xmlIO.c: comments cleanups
* Makefile.am: use xmllint for doing the RelaxNG tests
* configure.in: preparing 2.5.2 made schemas support default to
  on instead of off
* relaxng.c: removed the verbosity
* xmllint.c: added --relaxng option
* python/generator.py python/libxml_wrap.h: prepared the integration
  of the new RelaxNG module and schemas
* result/relaxng/*: less verbose output
Daniel
2003-02-05 13:19:53 +00:00
Daniel Veillard
3be27518c9 applied patch for FreeBSD by Julio Merino, closing #104475 Daniel
* xmlcatalog.c xmllint.c: applied patch for FreeBSD by
  Julio Merino, closing #104475
Daniel
2003-01-26 19:49:04 +00:00
Daniel Veillard
56ada1ddbb another fix needed as pointed by Christophe Merlet for --stream --debug if
* xmllint.c: another fix needed as pointed by Christophe Merlet
  for --stream --debug if compiled without debug support.
Daniel
2003-01-07 11:17:25 +00:00
Daniel Veillard
8326e73bc1 fixed --with-threads compile fixed --without-debug compile cleanup add a
* globals.c: fixed --with-threads compile
* xmllint.c: fixed --without-debug compile
* include/libxml/globals.h: cleanup
* include/libxml/schemasInternals.h: add a missing include
Daniel
2003-01-07 00:19:07 +00:00
Daniel Veillard
8a1b1853fc applied patch from Lukas Schroeder for register callbacks modified patch
* tree.c : applied patch from Lukas Schroeder for register callbacks
* valid.c: modified patch from Lukas Schroeder to test
  register callbacks with --chkregister
Daniel
2003-01-05 22:37:17 +00:00
Daniel Veillard
e59494fa54 a bit of cleanup small fix more work on the XmlTextReader tutorial a few
* xmllint.c: a bit of cleanup
* xmlreader.c: small fix
* doc/xmlreader.html: more work on the XmlTextReader tutorial
* python/libxml.py: a few fixes pointed out by Hannu Krosing
Daniel
2003-01-04 16:35:29 +00:00
Daniel Veillard
7704fb1d9f added the --stream flag to use the TextReader API small performance tweak
* xmllint.c: added the --stream flag to use the TextReader API
* xmlreader.c: small performance tweak
Daniel
2003-01-03 16:19:51 +00:00
Daniel Veillard
ea7751d53b working on DTD validation on top of xml reader interfaces. Allows to
* testReader.c xmlreader.c valid.c include/libxml/tree.h
  include/libxml/valid.h include/libxml/xmlreader.h: working on
  DTD validation on top of xml reader interfaces. Allows to
  validate arbitrary large instances. This required some extensions
  to the valid module interface and augmenting the size of xmlID
  and xmlRef structs a bit.
* uri.c xmlregexp.c: simple cleanup.
Daniel
2002-12-20 00:16:24 +00:00
Daniel Veillard
01c13b5be2 code cleanup, especially the function comments. fixed a small bug when
* DOCBparser.c HTMLparser.c c14n.c debugXML.c encoding.c hash.c
  nanoftp.c nanohttp.c parser.c parserInternals.c testC14N.c
  testDocbook.c threads.c tree.c valid.c xmlIO.c xmllint.c xmlmemory.c
  xmlreader.c xmlregexp.c xmlschemas.c xmlschemastypes.c xpath.c:
  code cleanup, especially the function comments.
* tree.c: fixed a small bug when freeing nodes which are XInclude ones.
Daniel
2002-12-10 15:19:08 +00:00
Daniel Veillard
118aed78f3 fixed the data callback on transition functionality which was broken when
* xmlregexp.c: fixed the data callback on transition functionality
  which was broken when using the compact form
* result/schemas/*: updated the results, less verbose, all tests
  pass like before
* DOCBparser.c testAutomata.c testC14N.c testSchemas.c testThreads.c
  testXPath.c valid.c xinclude.c xmllint.c xmlregexp.c xmlschemas.c
  xmlschemastypes.c xpath.c python/libxml.c: removed a bunch of
  annoying warnings
* xpath.c: try to provide better error report when possible
Daniel
2002-09-24 14:13:13 +00:00
Daniel Veillard
0f04f8ed61 fixed another stupid bug in xmlGetNodePath() --version now report the
* tree.c: fixed another stupid bug in xmlGetNodePath()
* xmllint.c: --version now report the options compiled in
Daniel
2002-09-17 23:04:40 +00:00
Daniel Veillard
19aa70245a memory leak reporting was broken after a change of the preprocessor symbol
* xmllint.c: memory leak reporting was broken after a change
  of the preprocessor symbol used to activate it.
Daniel
2002-09-05 11:14:19 +00:00
Aleksey Sanin
49cc97565f replaced sprintf() with snprintf() to prevent possible buffer overflow
* DOCBparser.c HTMLparser.c debugXML.c encoding.c
nanoftp.c nanohttp.c parser.c tree.c uri.c xmlIO.c
xmllint.c xpath.c: replaced sprintf() with snprintf()
to prevent possible buffer overflow (the bug was pointed
out by Anju Premachandran)
2002-06-14 17:07:10 +00:00
Daniel Veillard
6e4f1c0e69 applied a fix from Anthony Jones for -o /--output Daniel
* xmllint.c: applied a fix from Anthony Jones for -o /--output
Daniel
2002-04-09 09:55:20 +00:00
Daniel Veillard
90bc371716 owen pointed out a problem with the ftime fix, gettimeofday() was not
* configure.in xmllint.c: owen pointed out a problem with the
ftime fix, gettimeofday() was not detected by configure and
the ftime header wasn't included, dohhh
Daniel
2002-03-07 15:12:58 +00:00
Daniel Veillard
8c1ae606be trying to fix #71457 for timing precision when gettimeofday() is not
* configure.in xmllint.c: trying to fix #71457 for timing
  precision when gettimeofday() is not availble but ftime() is
Daniel
2002-03-07 11:21:00 +00:00
Daniel Veillard
9730051f83 close #72663 and #72658, don't memdump unless compiled explicitely with
* xmllint.c: close #72663 and #72658, don't memdump unless compiled
  explicitely with memory debugging switched on
Daniel
2002-03-01 09:13:41 +00:00
Daniel Veillard
f216d461eb fixing #68748 Daniel
* xmllint.c win32/win32config.h: fixing #68748
Daniel
2002-02-08 13:44:24 +00:00
Daniel Veillard
a42f25f939 added pointers to the web pages in the usage() Daniel
* xmllint.c: added pointers to the web pages in the usage()
Daniel
2002-01-25 14:15:40 +00:00
Daniel Veillard
845cce4cf1 Anthony Jones pointed a bug in xmlCopyEntity() Daniel
* entities.c: Anthony Jones pointed a bug in xmlCopyEntity()
Daniel
2002-01-09 11:51:37 +00:00
Daniel Veillard
3c5ed91ac3 Applied following patches from Robert Collins and make sure IN_LIBXML is
* libxml.h: Applied following patches from Robert Collins
  and make sure IN_LIBXML is defined when compiling it
-------
* include/libxml/xmlversion.h.in (LIBXML_DLL_IMPORT): Use on Cygwin
  as well as Visual C.
* parser.c (XML_DIR_SEP): Don't use '\\' for Cygwin.
* parserInternals.c (XML_DIR_SEP): Don't use '\\' for Cygwin.
* strio.c (PLATFORM_UNIX): Define for Cygwin.
* triodef.h (TRIO_PLATFORM_UNIX): Define for Cygwin.
* xmlIO.c (xmlFileOpen): Use unix behaviour for Cygwin.
  Use binary mode opens for Cygwin (xmlFileOpenW xmlParserGetDirectory
  xmlSysIDExists xmlNoNetExists).
* xmllint.c: Don't include winsock2.h for Cygwin.
Daniel
2002-01-08 10:36:16 +00:00
Daniel Veillard
cbaf399537 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
2001-12-31 16:16:02 +00:00
Daniel Veillard
1df3dfc2f7 applied Justin Fletcher patch for --output or -o daniel
* xmllint.c: applied Justin Fletcher patch for --output or -o
daniel
2001-12-18 11:14:16 +00:00
Daniel Veillard
01db67c84f applied Justin Fletcher generic timing patch similar to the one already
* xmllint.c: applied Justin Fletcher generic timing patch
  similar to the one already applied to xsltproc.
Daniel
2001-12-18 07:09:59 +00:00
Daniel Veillard
29e4399d11 fix the xmlStrdup() used in the previous patch. added --dropdtd fixed
* valid.c: fix the xmlStrdup() used in the previous patch.
* valid.c: added --dropdtd
* tree.c: fixed xmlUnlinkNode so it also removes the references
  from the document if the node is a DTD
Daniel
2001-12-13 22:21:58 +00:00
Daniel Veillard
9ae4b7afa9 removed another strdup() removed the HP/UX entry Daniel
* xmllint.c: removed another strdup()
* doc/FAQ: removed the HP/UX entry
Daniel
2001-12-13 14:24:09 +00:00
Daniel Veillard
ed472f34d2 fix bug #66816 when validating. don't use sys/time.h if configure did not
* valid.c: fix bug #66816 when validating.
* xmllint.c: don't use sys/time.h if configure did not found it
Daniel
2001-12-13 08:48:14 +00:00
Daniel Veillard
a7866930c1 applied Geert Kloosterman's patch to fix --repeat --timing output Daniel
* xmllint.c: applied Geert Kloosterman's patch to fix
  --repeat --timing output
Daniel
2001-12-04 13:14:44 +00:00
Daniel Veillard
bd9b0e8eed preparing 2.4.11 better --catalogs description Daniel
* configure.in include/libxml/xmlwin32version.h: preparing 2.4.11
* xmllint.c: better --catalogs description
Daniel
2001-11-26 10:32:08 +00:00
Daniel Veillard
d536f7012d Morus Walter patch to allow --format and --encode Daniel
* xmllint.c: Morus Walter patch to allow --format and --encode
Daniel
2001-11-08 17:32:47 +00:00
Daniel Veillard
89cad536e3 added entities testing to the Thread test make the test reasonable fix the
* test/threads/*: added entities testing to the Thread test
* testThreads.c: make the test reasonable
* DOCBparser.c: fix the DTD public and system ID
* xmllint.c: added --sgml for SGML DocBook importing
* Makefile.am: added Docbtests target
Daniel
2001-10-22 09:46:13 +00:00
Daniel Veillard
3c01b1d81b - 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
2001-10-17 15:58:35 +00:00
MDT 2001 John Fleck
bbb9e43758 xmllint.c - fixing typo
Sun Sep 23 21:02:39 MDT 2001 John Fleck <jfleck@inkstain.net>

	* xmllint.c - fixing typo
2001-09-24 03:08:43 +00:00
Daniel Veillard
05c13a20b9 John Fleck fixed typos in the options output fix ignorable white space SAX
* xmllint.c: John Fleck fixed typos in the options output
* parser.c SAX.c: fix ignorable white space SAX selection
* entities.c: Steve Underwood found the possibility of an
  ininite loop in case of error.
Daniel
2001-09-09 08:38:09 +00:00
Daniel Veillard
6c5f9d14cc 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
2001-08-25 13:33:14 +00:00
Daniel Veillard
e2940ddb35 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
2001-08-22 00:06:49 +00:00
Daniel Veillard
b7664f4441 fixed a line formatting problem Daniel
* xmllint.c: fixed a line formatting problem
Daniel
2001-08-19 13:00:43 +00:00
Daniel Veillard
90493a9171 adding a --format option Daniel
* xmllint.c: adding a --format option
Daniel
2001-08-14 14:12:47 +00:00
Daniel Veillard
48da910097 allow to inherit attributes from the DTD directly in the tree, this is
* SAX.c testXPath.c valid.c xmllint.c include/libxml/valid.h:
  allow to inherit attributes from the DTD directly in the
  tree, this is needed for XPath and can be a useful feature.
  Inherited namespaces are always provided at the tree level now
* test/defattr* result/defattr* result/noent/defattr*: added a couple
  of tests for this feature (XSLT being the prime user).
Daniel
2001-08-07 01:10:10 +00:00
Daniel Veillard
50f3437111 applied Win32 Facelift No.2 patches from Igor Zlatkovic for Windows/MSC
* DOCBparser.c Makefile.am nanohttp.c parser.c testHTML.c
  testSAX.c xmlIO.c xmllint.c include/win32config.h
  include/libxml/xmlversion.h.in include/libxml/xmlwin32version.h
  include/libxml/xmlwin32version.h.in win32/README.MSDev
  win32/dsp/*: applied Win32 Facelift No.2 patches from
  Igor Zlatkovic for Windows/MSC
Daniel
2001-08-03 12:06:36 +00:00