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

4135 Commits

Author SHA1 Message Date
Marius Wachtler
2ddecc2386 Fix a small bug in XPath evaluation code 2010-10-12 09:09:07 +02:00
Daniel Veillard
d2190faf78 Fix web site encoding problems
The encoding.html page was generated incorectly, revamp the input
xml.html and convert the full XSLT chain to use and serve it as
UTF-8
* doc/*: fix xml.html, update all stylesheets and regenerate
2010-09-30 13:58:22 +02:00
Daniel Veillard
aa54d37cd7 Fix handling of XML-1.0 XML namespace declaration
Usually 'xml' namespace for XML-1.0 declaration does not need
to be carried but Mike Hommey raised the problem that the SVG
XSD file fails to parse due to a mishandling.
- SAX2.c: failure to create a namespace should not be interpreted
  as a memory allocation error
- tree.c: document better xmlNewNs behaviour, and fix it in the
  case the 'xml' prefix is being used.
2010-09-09 18:17:47 +02:00
Michael Day
af58ee130f Fix a couple of typo in HTML parser error messages 2010-08-02 13:43:28 +02:00
Daniel Veillard
1ea9590046 Small code cleanup on previous patch
suggested by Andrew Nosenko
2010-07-28 14:49:55 +02:00
Csaba Raduly
5f8f5e7add Fix errors in XSD double validation check
- xmlschemastypes.c: "e" and "E" should not be accespted as is, digits
  are needed
2010-07-28 11:41:23 +02:00
Daniel Veillard
f1121c48af Add an HTML parser option to avoid a default doctype
- include/libxml/HTMLparser.h: defines the new HTML parser option
  HTML_PARSE_NODEFDTD
- HTMLparser.c: if option is set don't add a default DTD
- xmllint.c: add the corresponding --nodefdtd option in xmllint
2010-07-26 14:02:42 +02:00
Daniel Veillard
2ee91eb658 Fix handling of apos in URIs
François Delyon <f.delyon@satimage.fr> pointed out a divergence between
the URI code and RFC 3986, fix trivial and seems to not break regression
tests
2010-06-04 09:14:16 +08:00
Rob Richards
5b9dde3eed xmlTextReaderReadOuterXml should handle DTD
* xmlreader.c: fix description of xmlTextReaderReadOuterXml and support DTD
2010-05-05 07:59:44 -04:00
Rob Richards
bdf24b9f9b Autogen.sh needs to create m4 directory
* autogen.sh: create m4 directory if not already existing
2010-04-26 16:09:34 -04:00
Daniel Veillard
f61ba8d0ce Forgot to update the news page for 0.7.7 2010-03-25 10:54:32 +01:00
Rob Richards
a295fbc4cc Fix Win32 build
* libxml.h win32/Makefile.bcb win32/Makefile.mingw win32/Makefile.msvc: add
  NOLIBTOOL flag to prevent automatic define of LIBXML_STATIC
2010-03-19 06:31:55 -04:00
Daniel Veillard
bb5055f387 Release of libxml2-2.7.7
* configure.in: bump version
* doc//*: regenerated
v2.7.7
2010-03-15 16:21:00 +01:00
Daniel Veillard
06c93b7509 Remove a few warnings 2010-03-15 16:08:44 +01:00
Daniel Veillard
26b0687435 xmlCtxtResetLastError should reset ctxt->errNo
just fix it !
2010-03-15 15:59:07 +01:00
Daniel Veillard
3c080d6d72 Don't give default HTML boolean attribute values in parser
* HTMLparser.c: don't default value of HTML boolean attributes in the
  parser
* SAX2.c: move this to SAX2 tree building backend
* result/HTML/doc2.htm.sax result/HTML/doc3.htm.sax
  result/HTML/wired.html.sax: this changes a few HTML SAX regression
  tests
2010-03-15 15:47:50 +01:00
Eugene Pimenov
615904f582 Switch the HTML parser to be non-recursive
* HTMLparser.c: new htmlParseElementInternal non recursive, with
  htmlParseContentInternal and new function to handle node info
  and element end.
* include/libxml/parser.h: add new stack for element info in parser
  context
* parserInternals.c: fee element info stack
2010-03-15 15:16:02 +01:00
Eugene Pimenov
ef9c636ac1 Cleanup a couple of weirdness in HTML parser 2010-03-15 11:37:48 +01:00
Daniel Veillard
9543aee99b Fix broken escape behaviour in regexp ranges 2010-03-15 11:13:39 +01:00
Volker Grabsch
9031709bc7 Fix missing win32 libraries in libxml-2.0.pc
The libxml-2.0.pc file doesn't contain the win32 specific libraries. So when
(cross-)compiling for Windows, the output of

pkg-config libxml-2.0 --libs

returns an incompile set of libraries. Thus, applications using libxml2's
network functionality fail to build for the win32 platform.
2010-03-15 10:36:56 +01:00
Daniel Macks
12febe86fe Fix detection of python linker flags
python-config has both --libs and --ldflags, and we should use the
later to link the python binding
2010-03-15 10:31:24 +01:00
Paul Smith
38af74f7b1 fix build error in libxml2/python
There are missing $(srcdir) values in libxml2/python/Makefile.am which
cause it to fail if built remote from out of tree.
2010-03-15 10:22:25 +01:00
Raul Hudea
ba9716a197 ChunkParser: Incorrect decoding of small xml files
if encoding was autodetected, in xmlParseChunk, if initial size is 86 (a
chunk in UTF-16 encoding), the code that tries to read only the first line
will set the size to 90, which eventually leads to a memmove of 90 bytes
(in xmlBufferAdd) which will copy extra random memory bytes, which will
make the parser to fail because of these extra bytes.
2010-03-15 10:13:29 +01:00
Ben Walton
a7a6a4b2f3 relaxng.c: cast to allow compilation with sun studio 11
Sun Studio 11 was failing to compile relaxng.c due to a type mismatch
in a ternary operator used to provide an argument to xmlRngPErr.  It
seems that sos11 cc is more pedantic about this part of the C99
standard.  GCC issues a warning but doesn't fail by default.

After casting the string literal "nothing" to (const xmlChar *) sos11
cc is happy.  GCC no longer issues a warning either.

Another warning was cleaned up with an identical cast.
2010-03-15 10:06:36 +01:00
Roumen Petrov
f39adc2516 Fix build failure on Sparc solaris
Tries to find the right ld options needed to pass a linker script.
2010-03-11 14:49:13 +01:00
Eugene Pimenov
1e60fbcb6f htmlCheckEncoding doesn't update input-end after shrink
* HTMLparser.c: add the missing update to the end pointer
2010-03-10 18:10:49 +01:00
Daniel Veillard
9ccea57d61 Fix a missing #ifdef
https://bugzilla.gnome.org/show_bug.cgi?id=611806
Problem raised by Mark Overmeer
2010-03-10 15:02:49 +01:00
Daniel Veillard
743311bd91 use autoreconf in autogen.sh
* autogen.sh: use autoreconf instead of the direct set of calls for
  auto* updates
* INSTALL INSTALL.libxml2: migrate the INSTALL to INSTALL.libxml2 since
  autoreconf copies a new INSTALL
2010-03-10 10:35:56 +01:00
Roumen Petrov
120a269976 Fix build with mingw
- include/libxml/xmlexports.h: restore export decoration otherwise
  xsltproc and xmlsec crash
- libxml.h: define LIBXML_STATIC for static build
- configure.in: enable modules support for mingw* builds
- Makefile.am: flags for testdso if modules support enabled
2010-03-10 10:07:49 +01:00
Daniel Veillard
3157e51508 Upgrade some of the configure and autogen
Based on Roumen Petrov suggestions
2010-03-09 11:32:46 +01:00
Daniel Veillard
e4d1849cd8 Fix xmlNodeSetBase() comment 2010-03-09 11:12:30 +01:00
Daniel Veillard
47cd14e850 Fix encoding selection for xmlParseInNodeContext
* parser.c: use the encoding from the document to parse the chunk
2010-02-04 18:49:01 +01:00
François Delyon
2f70090864 xmlPreviousElementSibling mistake
* tree.c: xmlPreviousElementSibling it should look for preceding sibling
  never for the following ones...
2010-02-03 17:32:37 +01:00
Daniel Veillard
59df7834a2 608773 add a missing check in xmlGROW
* parser.c: check that the input buffer is non null before dereferencing it
2010-02-02 10:24:01 +01:00
Daniel Veillard
e20fb5a72c Fix xmlParseInNodeContext for HTML content
xmlParseInNodeContext notices that the enclosing document is
an HTML document, so invoke the HTML parser for that fragment, and
the HTML parser finding a "<p>hello world!</p>" document automatically
augment it with defaulted <html> and <body>. This defaulting should
be turned off in the HTML parser for this to work, but there is no
such HTML parser option. There is an htmlOmittedDefaultValue global
variable that you could use, but really we should not rely on global
variable for processing options anymore, best is to add an
HTML_PARSE_NOIMPLIED.
* include/libxml/HTMLparser.h: add the HTML_PARSE_NOIMPLIED parser flag
* HTMLparser.c: do add implied element if HTML_PARSE_NOIMPLIED is set
* parser.c: add HTML_PARSE_NOIMPLIED to options for xmlParseInNodeContext
  on HTML documents
2010-01-29 20:47:08 +01:00
Rob Richards
ddb01cbf61 Fix lost namespace when copying node
* tree.c: reconcile namespace if not found
2010-01-29 13:32:12 -05:00
Rob Richards
c966790781 Fix relaxNG tests in runtest for Windows
* runtest.c: initialize ret
2010-01-22 08:24:25 -05:00
Martin Trappel
f370310542 Fix a const warning in xmlNodeSetBase
* tree.c: xmlNodeSetName: Remove const from declaration since it is
  used non-const anyway. Remove unnecessary cast on xmlFree later on.
2010-01-22 12:08:00 +01:00
Eugene Pimenov
4b41f15dcd Fix some missing commas in HTML element lists
* HTMLparse.c: fix the macros BLOCK and INLINE to use commas and
  avoid transparent contatenation of strings
2010-01-20 14:25:59 +01:00
Mark Adler
a7e79f2868 libxml violates the zlib interface and crashes
* xmlIO.c: remove an abuse of zlib API and use a clean interface
  available in zlib >= 1.2.3
2010-01-19 16:28:48 +01:00
Nikolay Sivov
7304683335 Correct variable type to unsigned
* parser.c: fix len sign in xmlParseChunk()
2010-01-19 15:38:05 +01:00
Daniel Veillard
794613770d Fix python generator to not use deprecated xmllib
* python/generator.py: use xml.sax instead, patch based on similar
  fir for libvirt by Cole Robinson <crobinso@redhat.com>
2010-01-13 15:34:50 +01:00
Daniel Veillard
a2ff497167 Update some automake files
* install-sh missing mkinstalldirs: quite outdated as pointed by
  Matthias Jung, Roumen Petrov suggested to update
2009-10-21 23:29:39 +02:00
spadix
d29a5c8a5c 598785 Fix nanohttp on Windows
* nanohttp.c: the check for socket comparing to FD_SETSIZE introduced in
  bug fix for 559501 breaks on WinSockAPI
2009-10-19 14:03:25 +02:00
Daniel Veillard
f3c06692e0 Recognize ID attribute in HTML without DOCTYPE
* valid.c: xmlIsID() was short-circuiting the case where there
  was no DTD.
2009-10-16 16:47:58 +02:00
Martin
729601f157 Fix memory leak in xmlXPathEvalExpression()
* xpath.c: plug some leaks when parsing misformed XPath expressions
* python/tests/xpathleak.py: expand the regression tests for those
2009-10-12 22:42:26 +02:00
Kai Henning
2c2128387d Fix an init bug in global.c
* globals.c: fix the initialization of the mutex
2009-10-12 22:30:32 +02:00
Daniel Veillard
1934b0c0fa Adding a --xpath option to xmllint
* xmllint.c: runs in --noout mode and dumps the result of the XPath
  argument query. Still need to be expanded in some ways to allow
  namespace binding.
2009-10-07 10:25:06 +02:00
Daniel Veillard
1e52172358 Adding a .gitignore to avoid status pollution 2009-10-07 10:24:42 +02:00
Daniel Veillard
96bb740e21 Release of libxml2-2.7.6
* configure.in doc/xml.html: updates for release
* NEWS doc/libxml2.xsa doc/news.html python/setup.py: regenerated
v2.7.6
2009-10-06 18:38:15 +02:00