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

2699 Commits

Author SHA1 Message Date
Kasimier T. Buchcik
876a6db193 Simpified attribute wildcard creation and assignment to get rid of memory
* xmlschemas.c include/libxml/schemasInternals.h
  test/schemas/bug152470_1.* result/schemas/bug152470_1_1*:
  Simpified attribute wildcard creation and assignment to get rid
  of memory leaks.
  Restructured the validation process.
  Restructured and expanded parsing of <attributeGroup>.
  Added initial handing of xsi:type.
  Advanced handling of xsi:nil (should work now for simple types).
  Added construction of schemata using xsi:schemaLocation and
  xsi:noNamespaceSchemaLocation; this is not enabled, since
  no corresponding API exists yet.
  Moved the content model to complex type components.
  Resolution of types for attributes will look for simple types
  only (incl. all the built-in simple types).
  Extended parsing of 'anyAttribute'.
  Fixed content-type type for complex types if derived from
  'anyType' using the short-hand form (see bug # 152470,
  submitted by Thilo Jeremias).
* include/libxml/xmlschematypes.h: Cleaned up some comments.
* xstc/xstc.py: Workaround to accomodate case insensitive
  test definitions in ms-test.def.xml.
* result/schemas/deter0_0_0.err result/schemas/ns0_0_2.err
  result/schemas/ns0_1_2.err: Adapted.
2004-09-16 11:31:52 +00:00
Daniel Veillard
0046c2a1be Added Australian mirrors maintained by jason andrade, removed speakeasy, Daniel 2004-09-13 12:28:54 +00:00
William M. Brack
47a3188400 changed char array initialisation to avoid a complaint from some
* xmlwriter.c: changed char array initialisation to avoid a
  complaint from some compiler(s) (bug 152308)
2004-09-11 16:09:09 +00:00
William M. Brack
f54924bd7e applied fixes for the UTF8ToISO8859x transcoding routine suggested by Mark
* encoding.c: applied fixes for the UTF8ToISO8859x transcoding
  routine suggested by Mark Itzcovitz
2004-09-09 14:35:17 +00:00
Daniel Veillard
41c4a753bc fixed 2 problems raised by #152140, one which is that notation not in the
* valid.c xmlsave.c: fixed 2 problems raised by #152140, one
  which is that notation not in the internal subset should
  not be saved, and the second more nasty on an error saving
  NOTATIONs, if there is a proof that nobody uses notations !
Daniel
2004-09-08 20:55:38 +00:00
Kasimier T. Buchcik
5eba91f2d9 Added the function xmlSchemaValidateOneElement to the XML Schema
* xmlschemas.c include/libxml/xmlschemas.h: Added the function
  xmlSchemaValidateOneElement to the XML Schema validation API,
  as proposed by Jeffrey Fink - see bug # 152073.
2004-09-08 09:17:27 +00:00
Daniel Veillard
06500c8aa6 some cleanup checking for xmllint and xsltproc in configure.in, fixed make
* configure.in doc/Makefile.am xstc/Makefile.am: some cleanup
  checking for xmllint and xsltproc in configure.in, fixed
  make dist w.r.t. the new xstc subdir.
* doc/*: rebuilt
Daniel
2004-09-07 09:12:44 +00:00
Kasimier T. Buchcik
6258a4b903 Changed to finally validate instance documents.
* xstc/xstc.py: Changed to finally validate instance documents.
2004-09-06 14:26:45 +00:00
Daniel Veillard
f31187d31b integrated to "make valgrind", heavy ... weight 250MB of VM ! Daniel
* xstc/Makefile.am Makefile.am: integrated to "make valgrind",
  heavy ... weight 250MB of VM !
Daniel
2004-09-06 14:05:06 +00:00
Daniel Veillard
aa9a352fc7 Small updates, Daniel 2004-09-06 13:20:05 +00:00
Daniel Veillard
cd4535f7a4 Small fix on when to run xstc testsuite in make tests, daniel 2004-09-06 13:03:15 +00:00
Daniel Veillard
2cdd2f3a82 more cleanup in integrating the xstc testsuite Daniel
* xstc/Makefile.am xstc/xstc-to-python.xsl xstc/xstc.py Makefile.am:
  more cleanup in integrating the xstc testsuite
Daniel
2004-09-06 12:55:41 +00:00
Daniel Veillard
68763173d1 Small fix, Daniel 2004-09-06 12:02:19 +00:00
Daniel Veillard
b1da40c144 starting to integrate the xstc suite in the normal regression tests Daniel
* Makefile.am configure.in xstc/.cvsignore xstc/Makefile.am:
  starting to integrate the xstc suite in the normal regression
  tests
Daniel
2004-09-06 11:57:44 +00:00
Kasimier T. Buchcik
9d8d83aa8d The "tsDir" attribute was not set correctly.
* xstc/sun-test-def.xml: The "tsDir" attribute was not
  set correctly.
2004-09-06 11:44:27 +00:00
Daniel Veillard
8b7967c340 when output and expected do not match exactly run diff to put the
* check-xinclude-test-suite.py: when output and expected do not match
  exactly run diff to put the differences in the log c.f. #148691
Daniel
2004-09-06 09:54:35 +00:00
Kasimier T. Buchcik
9d2674960c Initial release of generation files to create python test scripts, which
* xstc/xstc-to-python.xslt xstc/ms-test-def.xml xstc/nist-test-def.xml
  xstc/sun-test-def.xml: Initial release of generation files to
  create python test scripts, which will run the W3C XML Schema Test
  Collection. The ms-test-def.xml and sun-test-def.xml files
  were extracted from the online HTML XSTC results [1], since they did
  not exist for the SUN tests, and only partially did exist for the
  MS tests. The NIST definition file was created by concatenation
  of the existing definition files for each single datatype.
  The stylesheet "xstc-to-python.xslt" should be run against the
  definition files to produce the python scripts.
  [1] "http://www.w3.org/XML/2001/05/xmlschema-test-collection/
  results-master.html"
2004-09-06 09:39:56 +00:00
Kasimier T. Buchcik
383434b2f7 Fixed a seg fault in xmlGetQNameProp: a format argument was missing. Fixed
* xmlschemas.c include/libxml/schemasInternals.h
  include/libxml/xmlerror.h: Fixed a seg fault in xmlGetQNameProp:
  a format argument was missing.
  Fixed wrong assignment of the owner of a wildcard in
  xmlSchemaBuildAttributeValidation (in the shorthandform of
  <complexType>; this caused a seg fault, due to a double-free
  of the wildcard.
  Added a check for circular attribute group references.
  Added a check for circular model group definition references.
  Fixed a dublicate xmlParserErrors enum value - see bug #151738.
2004-09-03 18:55:35 +00:00
William M. Brack
3e53016965 modified comments on xmlGetUTF8Char in response to bug 151760 (no change
* xmlstring.c: modified comments on xmlGetUTF8Char in
  response to bug 151760 (no change to logic)
2004-09-03 17:10:08 +00:00
William M. Brack
f409515f15 fixed error reported on the list caused by my last change
* xmlstring.c: fixed error reported on the list caused by
  my last change
2004-08-31 16:49:26 +00:00
Daniel Veillard
d1de4a3da9 release of libxml2-2.6.13 Daniel
* NEWS configure.in doc/*: release of libxml2-2.6.13
Daniel
LIBXML2_2_6_13
2004-08-31 13:43:07 +00:00
Daniel Veillard
71b956387b fixing #151456, an encoding error could generate a serialization loop.
* xmlIO.c: fixing #151456, an encoding error could generate
  a serialization loop.
Daniel
2004-08-31 12:15:36 +00:00
Daniel Veillard
0bff36ddf7 also produce a tar ball with just the sources added --path option and
* Makefile.am: also produce a tar ball with just the sources
* xmllint.c: added --path option and --load-trace options to
  xmllint, RFE #147740 based on xsltproc versions
* doc/xmllint.* doc/*: updated the man page and rebuilt
Daniel
2004-08-31 09:37:03 +00:00
Daniel Veillard
f34a20e69d "" is a valid hexbinary string dixit xmlschema-dev update the test. added
* xmlschemastypes.c: "" is a valid hexbinary string dixit xmlschema-dev
* result/schemas/hexbinary_0_1.err test/schemas/hexbinary_1.xml:
  update the test.
* test/ns5 result//ns5*: added a test for the namespace bug fixed
  in previous commit.
* Makefile.am: added a message in the regression tests
Daniel
2004-08-31 08:42:17 +00:00
Daniel Veillard
fc263f1fcf Fixed snapshot link, Daniel 2004-08-31 07:02:04 +00:00
William M. Brack
bf5cf2196c fixed bug introduced during OOM fixup causing problems with default
* SAX2.c: fixed bug introduced during OOM fixup causing problems
  with default namespace when a named prefix with the same href
  was present (reported on the mailing list by Karl Eichwalder.
* xmlstring.c: modified xmlCheckUTF8 with suggested code from
  Julius Mittenzwei.
* dict.c: added a typecast to try to avoid problem reported by
  Pascal Rodes.
2004-08-31 06:47:17 +00:00
Kasimier T. Buchcik
b4a9e64f75 Fixed a bug in xmlSchemasCheckFacet, which did not create a computed value
* xmlschemas.c: Fixed a bug in xmlSchemasCheckFacet, which did
  not create a computed value on a facet and thus crashed during
  validation of instances.
  Expanded validity checks for min/maxOccurs attributes.
  Expanded validity checks for the value of the attribute "form".
2004-08-30 10:56:53 +00:00
William M. Brack
3ffe90ea1c fixed a problem with xmlCheckUTF8 reported on the mailing list by Julius
* xmlstring.c: fixed a problem with xmlCheckUTF8 reported on the
  mailing list by Julius Mittenzwei
2004-08-28 01:33:30 +00:00
Daniel Veillard
da3336f2d1 added BuildRequires: zlib-devel, fixes Red Hat bug #124942 Daniel
* libxml.spec.in: added BuildRequires:  zlib-devel, fixes
  Red Hat bug #124942
Daniel
2004-08-26 22:14:34 +00:00
Kasimier T. Buchcik
924bd468a1 Added a missing ChangeLog entry.
Added a missing ChangeLog entry.
2004-08-26 10:46:41 +00:00
Daniel Veillard
eebd633b91 remove a warning on Solaris fix a crashing bug #151111 Daniel
* parser.c: remove a warning on Solaris
* xmlschemastype.c: fix a crashing bug #151111
Daniel
2004-08-26 10:30:44 +00:00
Kasimier T. Buchcik
bea2354a33 Added missing test file. Substituted the obsolete xmlSchemaValidError(s)
* test/schemas/import-bad-1_0.imp: Added missing test file.
* xmlschemas.c include/libxml/xmlerror.h include/libxml/xmlschemas.h:
  Substituted the obsolete xmlSchemaValidError(s) for xmlParserErrors
  - see #150840.
  Changed the import of schemas to allow failure of location
  of a resource to be imported.
* result/schemas/all_* result/schemas/any3_0_0.err
  result/schemas/choice_* result/schemas/import1_0_0.err
  result/schemas/list0_0_1.err result/schemas/list0_1_0.err
  result/schemas/list0_1_1.err result/schemas/ns0_0_2.err
  result/schemas/ns0_1_2.err: Adapted regression test results.
2004-08-25 20:35:45 +00:00
MDT 2004 John Fleck
4c3bb7d8a2 doc/tutorial/xmltutorial.xml, xmltutorial.pdf, *.html fix Xpath memory
Tue Aug 24 20:49:15 MDT 2004 John Fleck <jfleck@inkstain.net>

	* doc/tutorial/xmltutorial.xml, xmltutorial.pdf, *.html
	fix Xpath memory leak (thanks to sKaBoy and William Brack)
2004-08-25 02:51:27 +00:00
Igor Zlatkovic
abbf9dfd62 *** empty log message *** 2004-08-24 19:13:20 +00:00
Igor Zlatkovic
07d5976bf4 fixed DTD loading problem reported by Abhinkar, Sameer 2004-08-24 19:12:51 +00:00
Igor Zlatkovic
8834d2767d *** empty log message *** 2004-08-24 14:43:30 +00:00
Igor Zlatkovic
5b9d71462f upgraded to zlib 1.2.1 2004-08-24 14:42:56 +00:00
Igor Zlatkovic
8ea667fdb3 added support for version extra 2004-08-24 14:42:29 +00:00
Daniel Veillard
4918efe916 removing -O -g from default gcc flags #150828 Daniel
* configure.in: removing -O -g from default gcc flags #150828
Daniel
2004-08-23 12:35:14 +00:00
Daniel Veillard
b331fffbb9 preparing 2.6.12 release, updated and and rebuilt the docs. Daniel
* configure.in doc/* NEWS: preparing 2.6.12 release, updated and
  and rebuilt the docs.
Daniel
LIBXML2_2_6_12
2004-08-22 14:21:57 +00:00
Daniel Veillard
36505562ac fix a problem on last commit Daniel
* python/libxml.c: fix a problem on last commit
Daniel
2004-08-22 14:02:09 +00:00
Daniel Veillard
6ebf3c4c1a trying to remove some warning when compiling on Fedora Core 3 and 64bits
* xmllint.c xpath.c include/libxml/xpath.h
  include/libxml/xpathInternals.h python/libxml.c
  python/libxml_wrap.h: trying to remove some warning when compiling
  on Fedora Core 3 and 64bits
Daniel
2004-08-22 13:11:39 +00:00
William M. Brack
2f2a66324d modified parsing of <list>, <union>, <restriction>, <sequence>, <choice>,
* xmlschemas.c: modified parsing of <list>, <union>, <restriction>,
  <sequence>, <choice>, <include>, <import>.
  Fixed schema defaults (elementFormDefault, etc.) for included
  schemas.
  Fixed a bug which reported attributes as invalid on
  elements declarations with the built-in type 'anyType'.
  Added "lax" validation of the content of elements of type
  'anyType'.
  Fixed: element declarations with the same name were treated
  as duplicate if located in the subtree of <choice> -> <sequence>.
  (This was bug 150623, submitted by Roland Lezuo)
  Fixed cleanup of error codes in xmlSchemaValidateDoc as proposed
  by Igor Kapitanker. (This was bug 150647, submitted by Igor
  Kapitanker)
* xmlschemastypes.c: Changed the type of anyType to
  XML_SCHEMAS_ANYTYPE.
* include/libxml/xmlerror.h: Added schema parser errors.
* result/schemas/bug145246_0_0*
  result/schemas/extension1_0_2.err: Changed test results.
* result/schemas/ct-sc-nobase_0_0*
  result/schemas/facet-whiteSpace_0_0*
  result/schemas/import1_0_0* result/schemas/import2_0_0*
  result/schemas/include2_0_0* result/schemas/include3_0_0*
  result/schemas/restriction-attr1_0_0*
  result/schemas/seq-dubl-elem1_0_0*
  result/schemas/xsd-list-itemType_0_0*: Added new rest results.
  test/schemas/bug145246.xsd.imp test/schemas/ct-sc-nobase_0*
  test/schemas/facet-whiteSpace_0* test/schemas/import1_0*
  test/schemas/import2_0* test/schemas/include2_0*
  test/schemas/include3_0* test/schemas/restriction-attr1_0*
  test/schemas/seq-dubl-elem1_0* test/schemas/xml.xsd
  test/schemas/xsd-list-itemType_0*: Added new tests and missing
  files.
2004-08-20 23:09:47 +00:00
Daniel Veillard
dab93ea749 a bit of cleanup and a extra variable for CVS dist Daniel
* Makefile.am configure.in: a bit of cleanup and a extra variable for
  CVS dist
Daniel
2004-08-20 16:47:10 +00:00
MDT 2004 John Fleck
b1b3a77fca doc/xmllint.xml, xmllint.1, xmllint.html Edit and rebuild the man pages
Thu Aug 19 07:44:07 MDT 2004 John Fleck <jfleck@inkstain.net>

	* doc/xmllint.xml, xmllint.1, xmllint.html
	Edit and rebuild the man pages with Daniel's C14 update
2004-08-19 13:45:47 +00:00
William M. Brack
503b610af2 fixed missing line numbers on entity as reported on the list by Steve
* parser.c: fixed missing line numbers on entity as reported
  on the list by Steve Cheng
2004-08-19 02:17:27 +00:00
William M. Brack
f4025492f5 added some code to include the CVS ChangeLog version in the
* configure.in globals.c include/libxml/xmlversion.h.in
  include/libxml/xmlwin32version.h.in: added some code to
  include the CVS ChangeLog version in the xmlParserVersion
  string (printed by xmllint with --version)
2004-08-18 21:08:46 +00:00
Daniel Veillard
3cef119005 Updated the snapshot info, Daniel 2004-08-18 09:30:31 +00:00
Daniel Veillard
259f0dfa8b Applied patch from Torkel Lyng to add Schemas support to the Python
* xmlschemas.c include/libxml/xmlschemas.h python/generator.py
  python/libxml.c python/libxml_wrap.h python/types.c
  python/tests/schema.py python/tests/Makefile.am: Applied patch
  from Torkel Lyng to add Schemas support to the Python bindings
  and extend the schemas error API, registered a new test.
* doc/* elfgcchack.h: rebuilt to regenerate the bindings
Daniel
2004-08-18 09:13:18 +00:00
Daniel Veillard
c14c3892a2 added help for new set shell command added parser option to not generate
* debugXML.c: added help for new set shell command
* xinclude.c xmllint.c xmlreader.c include/libxml/parser.h:
  added parser option to not generate XInclude start/end nodes,
  added a specific option to xmllint to test it fixes #130769
* Makefile.am: regression test the new feature
* doc/xmllint.1 doc/xmllint.xml: updated man page to document option.
Daniel
2004-08-16 12:34:50 +00:00