|
3888f472
|
2007-08-23T09:29:03
|
|
applied patch from Frank Gross fixing Schemas IDC import bug #455953 and
* xmlschemas.c test/schemas/*455953* result/schemas/bug455953*:
applied patch from Frank Gross fixing Schemas IDC import bug
#455953 and also add the test to the regression suite
Daniel
svn path=/trunk/; revision=3652
|
|
65fcf27a
|
2007-07-11T17:55:30
|
|
applied patch for xsi:nil from Frank Gross, this should fix bug #358125
* xmlschemas.c: applied patch for xsi:nil from Frank Gross, this
should fix bug #358125
Daniel
svn path=/trunk/; revision=3643
|
|
734e7667
|
2007-06-26T11:30:31
|
|
fix a crash on solaris when a printf %s with a NULL argument occurs,
* xmlschemas.c: fix a crash on solaris when a printf %s with a NULL
argument occurs, should fix #450936
Daniel
svn path=/trunk/; revision=3641
|
|
06559b3a
|
2007-03-14T09:34:15
|
|
fixed problem with referenced attribute groups (bug #417621) re-ordered
* xmlschemas.c: fixed problem with referenced attribute groups
(bug #417621)
* configure.in: re-ordered some includes for types.h / socket.h
(bug 416001)
svn path=/trunk/; revision=3590
|
|
deb58713
|
2006-08-15T12:52:30
|
|
While investigating bug #350247, I noticed that xmlSchemaIDCMatcher
* xmlschemas.c: While investigating bug #350247, I noticed
that xmlSchemaIDCMatcher structs are massively recreated
although only a maximum of 3 structs is used at the same
time; added a cache for those structures to the
validation context.
|
|
6f9b0878
|
2006-08-12T14:09:01
|
|
applied patch from Marton Illes to fix an allocation bug in
* xmlschemas.c: applied patch from Marton Illes to fix an allocation
bug in xmlSchemaXPathEvaluate should close #351032
Daniel
|
|
1131e116
|
2006-08-07T11:02:54
|
|
applied patch from Bertrand Fritsch to fix a bug in
* xmlschemas.c: applied patch from Bertrand Fritsch to fix a bug in
xmlSchemaClearValidCtxt
Daniel
|
|
f896d44a
|
2006-07-12T15:18:08
|
|
Fixed bug #347316, reported by David Belius: The simple type, which was
* xmlschemas.c: Fixed bug #347316, reported by David Belius:
The simple type, which was the content type definition
of a complex type, which in turn was the base type of a
extending complex type, was missed to be set on this
extending complex type in the derivation machinery.
|
|
e5f810f6
|
2006-05-30T09:41:25
|
|
A warning will now be reported in the value of the XSD attribute
* xmlschemas.c: A warning will now be reported in the value of
the XSD attribute 'schemaLocation' does not consist of tuples
(namespace-name, document-URI). A warning will be reported
if a schema document could not be found at the specified
location (via 'schemaLocation' or
'noNamespaceSchemaLocation').
* include/libxml/xmlerror.h: Added XML_SCHEMAV_MISC to
xmlParserErrors.
|
|
9b02e295
|
2006-05-11T16:25:44
|
|
Fixed bug #341337, reported by David Grohmann. The code expected a node
* xmlschemas.c: Fixed bug #341337, reported by David Grohmann.
The code expected a node (xmlNodePtr) on the info for a
non-existent default attribute, which clearly cannot be
expected, since the attribute does not exist. I can only
guess that this sneaked trying to eliminate the query
for the owner-element, which is unavoidable actually.
Note that creation of default attributes won't have an
effect if validating via SAX/XMLReader; i.e., the processor
won't fire additional start-attribute events (I'm not even
sure if Libxml2 has such a SAX-event; I think it hands them
all over in the start-element event).
|
|
92b394fc
|
2006-05-09T19:59:54
|
|
Fixed bug #341150, reported by Michael Romer. In
* xmlschemas.c: Fixed bug #341150, reported by Michael Romer.
In xmlSchemaBuildContentModelForSubstGroup(),
xmlAutomataNewOnceTrans2() was incorrectly used instead of
xmlAutomataNewTransition2() to mimic a xs:choice for
substitution-groups.
* test/schemas/subst-group-1_1.xsd
test/schemas/subst-group-1_0.xml
result/schemas/subst-group-1_0_1
result/schemas/subst-group-1_0_1.err: Added regression test
supplied by Michael Romer for bug #341150.
|
|
146a982e
|
2006-05-04T17:19:07
|
|
We'll raise an internal error and stop validation now when an entity is
* xmlschemas.c: We'll raise an internal error and stop
validation now when an entity is found in the instance
document, since we don't support automatic entity
substitution by the schema processor (yet?) -
see bug #340316, reported by Nick Wellnhofer.
|
|
b63d2fab
|
2006-04-19T11:20:49
|
|
Fixed incorrect validation of restricted enumerations. Added related
* xmlschemas.c test/schemas/restriction-enum-1*
result/schemas/restriction-enum-1*: Fixed incorrect
validation of restricted enumerations. Added related
regression tests.
|
|
cdf59aa5
|
2006-04-13T07:50:11
|
|
fixing a deallocation problem in xmlSchemaAddSchemaDoc() in case of
* xmlschemas.c: fixing a deallocation problem in xmlSchemaAddSchemaDoc()
in case of errors, should fix bug #338303
Daniel
|
|
b294717b
|
2006-03-27T09:45:01
|
|
removed unused code or variables, from Stefan Kost fixing #336163 and
* xmlschemas.c: removed unused code or variables, from Stefan Kost
fixing #336163 and #336164
Daniel
|
|
fef73a55
|
2006-03-27T09:38:57
|
|
applied patch from Stefan Kost fixing #336160 Daniel
* xmlschemas.c: applied patch from Stefan Kost fixing #336160
Daniel
|
|
aac7c68e
|
2006-03-10T13:40:16
|
|
fix a few warning raised by gcc-4.1 and latests changes Daniel
* c14n.c encoding.c xmlschemas.c xpath.c xpointer.c: fix a few
warning raised by gcc-4.1 and latests changes
Daniel
|
|
14b56439
|
2006-03-09T18:41:40
|
|
more cleanups based on coverity reports. Daniel
* relaxng.c xmlschemas.c xmlschemastypes.c: more cleanups based
on coverity reports.
Daniel
|
|
4c0aa16e
|
2006-02-20T14:47:08
|
|
Fixed a side-effect of the previous XSI bugfix: The constructor needs a
* xmlschemas.c: Fixed a side-effect of the previous XSI bugfix:
The constructor needs a bucket to be assigned during component
fixup.
|
|
1869be56
|
2006-02-20T13:37:55
|
|
Fixed xs:boolean to reject the empty string (reported by Bas Driessen on
* xmlschemas.c xmlschemastypes.c: Fixed xs:boolean to reject
the empty string (reported by Bas Driessen on the mailing-list).
Fixed schema XSI-acquisition and construction: the schemata
(xmlSchema) didn't get the targetNamespace in some cases, thus
the component resolution mechanism failed to work. The XSI
stuff needs to be tested more intensively; think about how
to test this for regression.
|
|
67952601
|
2006-01-05T15:29:44
|
|
upated the news regenerated the docs, preparing for release of 2.6.23
* NEWS configure.in libxml.spec.in testapi.c doc/*: upated the news
regenerated the docs, preparing for release of 2.6.23
* pattern.c xmlschemas.c: fixed some comments
Daniel
|
|
dfbc33a1
|
2006-01-03T10:51:59
|
|
Removed last dependency on the obsolete enum xmlSchemaValidError.
* xmlschemas.c: Removed last dependency on the obsolete enum
xmlSchemaValidError.
|
|
d0271473
|
2006-01-02T10:22:02
|
|
compilation and doc build fixes from Michael Day Daniel
* xmlreader.c include/libxml/xmlreader.h xmlschemas.c: compilation
and doc build fixes from Michael Day
Daniel
|
|
5bb0c08d
|
2005-12-20T10:48:33
|
|
Fixed a segfault during text concatenation when validating a node tree:
* xmlschemas.c xmlstring.c: Fixed a segfault during
text concatenation when validating a node tree:
xmlStrncat was called with a @len of -1; but unlike
xmlStrncatNew, it does not calculate the length
automatically in such a case (reported by Judy Hay
on the mailing list).
Updated the descriptions of the involved string
functions to note this.
|
|
7ca5aedf
|
2005-12-12T15:13:40
|
|
Workaround for bug #323510: substituted the epsilon transition for a
* xmlschemas.c: Workaround for bug #323510: substituted the
epsilon transition for a labelled transition, in order to
avoid a bug in xmlregexp.c which eliminated the epsilon
transition and marked the initial state as final.
|
|
6a0baa0c
|
2005-12-10T11:11:12
|
|
fixed a number of warnings shown by HP-UX compiler and reported by Rick
* HTMLparser.c configure.in parserInternals.c runsuite.c runtest.c
testapi.c xmlschemas.c xmlschemastypes.c xmlstring.c: fixed a number
of warnings shown by HP-UX compiler and reported by Rick Jones
Daniel
|
|
215406f0
|
2005-12-07T12:14:09
|
|
Fixed a segfault: the instance document was still tried to be validated,
* xmlschemas.c: Fixed a segfault: the instance document was
still tried to be validated, if the schema, dynamically
acquired using XSI was invalid, thus mangled. The
validation will stop (or rather won't validate) now in
such a case. The schema parser error code will be set
on the validion context now; this is somehow not nice,
but it assures that the validation context indicates an
error in there was a parser error.
|
|
f39e8d1f
|
2005-11-30T11:03:24
|
|
Fixed bubbling of duplicate IDC nodes: the parent's list of duplicates was
* xmlschemas.c: Fixed bubbling of duplicate IDC nodes: the
parent's list of duplicates was filled with NULLs instead
of the nodes under certain conditions. This lead to a
segfault when the list's entries were accessed.
|
|
132ba5f5
|
2005-11-28T12:32:24
|
|
An assignment to a local variable, which was used to access the IDC node
* xmlschemas.c: An assignment to a local variable, which was
used to access the IDC node list, was missing after the
reallocation of the list (reported by Fabrice GUY
bug #322411). Renamed the define ENABLE_IDC_NODE_TABLES
to ENABLE_IDC_NODE_TABLES_TEST and *disabled* it, since
it is used to force bubbling of IDC node tables even
if not necessary; this was intended to be used for test
purposes, but I obviously missed to disable it (although
it apparently helped finding the bug).
|
|
81755ea6
|
2005-11-23T16:39:27
|
|
In xmlSchemaAssembleByXSI() the return value of xmlSchemaGetMetaAttrInfo()
* xmlschemas.c: In xmlSchemaAssembleByXSI() the return value
of xmlSchemaGetMetaAttrInfo() was not assigned to anything;
this caused XSI-driven-dynamic schema acquisition to fail
with @noNamespaceSchemaLocation (reported by Julien Lamy
on the mailing list).
|
|
5d2998be
|
2005-11-22T17:36:01
|
|
Fixed a bug in xmlSchemaFindRedefCompInGraph() which caused the search for
* xmlschemas.c: Fixed a bug in xmlSchemaFindRedefCompInGraph()
which caused the search for components to stop at the
first encountered attribute group component.
Fixed error report in xmlSchemaCheckSRCRedefineFirst(): the
designation of a not-found component was not reported.
|
|
90b5ebc0
|
2005-11-18T17:18:27
|
|
Added xmlSchemaSetParserStructuredErrors() to the API. Fixed channeling of
* xmlschemas.c include/libxml/xmlschemas.h:
Added xmlSchemaSetParserStructuredErrors() to the API.
Fixed channeling of error relevant information to
subsequent parser/validation contexts.
|
|
77e76829
|
2005-11-11T12:52:32
|
|
Changed xmlSchemaFormatIDCKeySequence() to use
* xmlschemas.c: Changed xmlSchemaFormatIDCKeySequence()
to use xmlSchemaGetCanonValueWhtspExt() in order to
correctly report values for xs:anySimpleType.
* test/schemas/idc-keyref-err1*
result/schemas/idc-keyref-err1*: Added a test for this change.
|
|
69dea3a0
|
2005-11-07T14:02:44
|
|
Fixed the type of the totalDigits value to be positiveInteger. Fixed crash
* xmlschemas.c xmlschemastypes.c: Fixed the type of the
totalDigits value to be positiveInteger.
Fixed crash in an error report function when we gave it
the document node; only element and attribute nodes are
processed now (reported by Rob Richards).
|
|
f326e77c
|
2005-10-20T11:06:00
|
|
Removed creation of a temporary parser context during validation when
* xmlschemas.c: Removed creation of a temporary parser context
during validation when processing xsi:type; this previously
added a string to the dict of the schema - to assure thread
safety, we don't want to modify a given schema during
validation.
|
|
940ab0c6
|
2005-10-19T17:00:53
|
|
Fixed a potential memory leak in xmlSchemaCheckCSelectorXPath() when an
* xmlschemas.c: Fixed a potential memory leak in
xmlSchemaCheckCSelectorXPath() when an internal error occurs.
Fixed setting of ctxt->err to the given error code in
the parsing error functions.
* pattern.c: Added internal xmlCompileIDCXPathPath() as a
starting point for IDC XPath compilation; this and some other
tiny changes fixes issues regarding whitespace in the
expressions and IDC selector/field relevant restrictions of
the subset of XPath. Fixed a missing blocking of attributes
in xmlStreamPushInternal().
|
|
567a45b5
|
2005-10-18T19:11:55
|
|
removed the error message removed 2 instability warnings from function
* runtest.c: removed the error message
* relaxng.c xmlschemas.c: removed 2 instability warnings from function
documentation
* include/libxml/schemasInternals.h: changed warning about API stability
* xmlregexp.c: trying to improve runtime execution of non-deterministic
regexps and automata. Not fully finished but should be way better.
Daniel
|
|
ee8e8ae9
|
2005-10-17T14:15:37
|
|
Fixed a memory leak in xmlSchemaContentModelDump(). Added output of local
* xmlschemas.c: Fixed a memory leak in
xmlSchemaContentModelDump(). Added output of local types
in xmlSchemaElementDump(). Tiny cosmetical changes to the
dump output.
|
|
65c2f1d7
|
2005-10-17T12:39:58
|
|
Silenced intel compiler warnings (reported by Kjartan Maraas, bug
* tree.c pattern.c: Silenced intel compiler warnings (reported
by Kjartan Maraas, bug #318517).
* xmlschemas.c: The above changes in pattern.c revealed an
inconsistency wrt IDCs: we now _only_ pop XPath states, if
we really pushed them beforehand; this was previously not
checked for the case when we discover an element node to be
invalid wrt the content model.
Fixed segfault in xmlSchemaGetEffectiveValueConstraint().
|
|
27820270
|
2005-10-14T14:33:48
|
|
Fixed some identity-constraint issues: Restructured IDC node-tables
* xmlschemas.c: Fixed some identity-constraint issues:
Restructured IDC node-tables
Allowed IDCs to resolve also to nodes of complex type with
simple content.
Added check for keyrefs with references to keyrefs.
IDC target-nodes were interferring with IDC node-tables,
since they used one list of entries only. I separated this
one big list into 3 lists: 1 for IDC node-table entries,
1 for _duplicates_ of IDC node-table entries and 1 for
IDC target-nodes. More code, but cleaner and it works at last.
Keyrefs will fail to resolve to duplicate key/unique entries.
I thought this was already working this way, but it didn't.
The wording of the definition for [node table] in the spec
can lead to a scenario, where keyrefs resolve perfectly, even
if the relevant key-sequences of the referenced key/unique have
duplicates in the subtree. Currently only Saxon 8.5.1 is
dissallowing resolution to duplicate entries correctly - we
will follow Saxon here.
Removed some intel compiler warnings (reported by
Kjartan Maraas, bug #318517).
* pattern.c: Fixed an IDC-XPath problem when resolving to
attributes.
|
|
570faa57
|
2005-10-10T13:18:40
|
|
Initial implementation for redefinitions; this still misses checks for
* xmlschemas.c include/libxml/schemasInternals.h
include/libxml/xmlerror.h: Initial implementation for
redefinitions; this still misses checks for restrictions
of the content model of complex types.
Fixed default/fixed values for attributes (looks like they
did not work in the last releases).
Completed constraints for attribute uses.
Seperated attribute derivation from attribute constraints.
Completed constraints for attribute group definitions.
Disallowing <import>s of schemas in no target namespace if the
importing schema is a chameleon schema. This contradicts
the way Saxon, Xerces-J, XSV and IBM's SQC works, but the
W3C XML Schema WG, thinks it is correct to dissalow such
imports.
Added cos-all-limited constraints.
Restructured reference resolution to model groups and element
declarations.
Misc cleanup.
|
|
33b20b70
|
2005-09-12T21:43:20
|
|
release of 2.6.22 updated doc and rebuild. added XML_SAVE_NO_XHTML
* NEWS configure.in doc//*: release of 2.6.22 updated doc and
rebuild.
* xmlsave.c include/libxml/xmlsave.h: added XML_SAVE_NO_XHTML
xmlSaveOption
* xmlschemas.c: minor cleanups
Daniel
|
|
22c0c465
|
2005-09-12T19:09:46
|
|
Completion of the schema graph. Centralisation, more robustness of the
* xmlschemas.c include/libxml/schemasInternals.h
include/libxml/xmlerror.h: Completion of the schema graph.
Centralisation, more robustness of the schema document
aquisition story. Centralised and restructured component fixup.
Fixed attribute derivation when 'prohibiting' attribute uses.
Added warnings: when schema documents cannot be localized
during imports; when we get duplicate and pointless attribute
prohibitions. Changed error reports for IDCs to report
the relevant IDC designation as well (requested by GUY Fabrice).
Misc code-cleanup.
|
|
630215ba
|
2005-08-22T10:15:39
|
|
Some preparation for the creation of a graph of
* xmlschemas.c: Some preparation for the creation of a graph
of imported/included/redefined schemas; this is needed for
at least the redefinitions.
Centralized the creation of the parser context in one function.
|
|
764b3d61
|
2005-08-12T12:25:23
|
|
Changed output for keyref-match errors; the target-node will be now
* xmlschemas.c include/libxml/xmlerror.h:
Changed output for keyref-match errors; the target-node will
be now reported rather than the scope-node of the keyref
definition - allowing easier chasing of instance errors.
This was reported by Guy Fabrice to the mailing list.
Some initial parsing code for schema redefinitions.
* result/schemas/bug303566_1_1.err
result/schemas/bug312957_1_0.err: Adapted test results due
to the keyref changes.
|
|
210536bd
|
2005-08-10T21:40:02
|
|
fix for bug #312945 as pointed by Dean Hill, the context type was not
* xmlschemas.c: fix for bug #312945 as pointed by Dean Hill, the
context type was not always properly initialized.
Daniel
|
|
800cbac3
|
2005-08-09T12:31:55
|
|
Fixed #312957 reported by Carol Hunter: streaming XPath states were not
* xmlschemas.c: Fixed #312957 reported by Carol Hunter:
streaming XPath states were not popped in every case,
thus failed to resolve correctly for subsequent input.
* test/schemas/bug312957* result/schemas/bug312957*:
Added the test submitted by Carol Hunter.
|
|
6e65e157
|
2005-08-09T11:09:52
|
|
trying to nail down the remaining ##other issues completed the tests and
* xmlregexp.c xmlschemas.c: trying to nail down the remaining
##other issues
* result/schemas/any7* test/schemas/any7: completed the tests
and added the results
* result/schemas/any3_0_0.err result/schemas/any5_0_0.err
result/schemas/any5_1_0.err: this slightly chnages the output
from 3 existing tests
Daniel
|
|
004b5463
|
2005-08-08T12:43:09
|
|
Fixed a memory leak: xmlSchemaFreeAnnot() was only freeing the first
* xmlschemas.c: Fixed a memory leak: xmlSchemaFreeAnnot() was
only freeing the first annotation in the list.
|
|
24505b0f
|
2005-07-28T23:49:35
|
|
a lot of small cleanups based on Linus' sparse check output. Daniel
* HTMLparser.c SAX2.c encoding.c globals.c parser.c relaxng.c
runsuite.c runtest.c schematron.c testHTML.c testReader.c
testRegexp.c testSAX.c testThreads.c valid.c xinclude.c xmlIO.c
xmllint.c xmlmodule.c xmlschemas.c xpath.c xpointer.c: a lot of
small cleanups based on Linus' sparse check output.
Daniel
|
|
11162b7c
|
2005-07-28T00:50:22
|
|
Added creation of the content type of xs:anyType. This is needed when
* xmlschemastypes.c: Added creation of the content type of
xs:anyType. This is needed when trying to extend xs:anyType
(although it makes no sense to extend it; IMHO the schema
people should have ruled this out). This was reported
by Yong Chen to the mailing list.
* xmlschemas.c: Fixed handling of xs:anyType in
xmlSchemaCheckCOSCTExtends() (reported by Young Chen). Tiny
adjustment to an error report output.
* test/schemas/extension2* result/schemas/extension2*:
Added a test case provided by Young Chen.
|
|
5da6dd34
|
2005-07-23T21:12:30
|
|
Removed the workaround code in xmlSchemaValidateElemWildcard() for the
* xmlschemas.c: Removed the workaround code in
xmlSchemaValidateElemWildcard() for the <any> wildcard
with namespace == ##other. Support for such wildcards was
implemented by Daniel at the automaton level recently, and
the workaround code iterfered with it.
|
|
041c5ffa
|
2005-07-23T14:42:34
|
|
Removed an "internal error" message from xmlSchemaBuildAContentModel()
* xmlschemas.c: Removed an "internal error" message from
xmlSchemaBuildAContentModel() when an empty model group
definition is hit.
|
|
2c9aac03
|
2005-07-21T22:14:12
|
|
Fixed xmlSchemaPSimpleTypeErr(), which did not output the given string
* xmlschemas.c: Fixed xmlSchemaPSimpleTypeErr(), which did not
output the given string arguments correctly.
|
|
ffa3c749
|
2005-07-21T13:24:09
|
|
applied a patch from Marcus Boerger to fix problems with calling
* error.c globals.c parser.c runtest.c testHTML.c testSAX.c
threads.c valid.c xmllint.c xmlreader.c xmlschemas.c xmlstring.c
xmlwriter.c include/libxml/parser.h include/libxml/relaxng.h
include/libxml/valid.h include/libxml/xmlIO.h
include/libxml/xmlerror.h include/libxml/xmlexports.h
include/libxml/xmlschemas.h: applied a patch from Marcus Boerger
to fix problems with calling conventions on Windows this should
fix #309757
Daniel
|
|
0a119ebe
|
2005-07-20T13:46:00
|
|
an optimization of the char data inner loop, can gain up to 10% in pure
* parser.c: an optimization of the char data inner loop,
can gain up to 10% in pure SAX2 parsing speed
* xmlschemas.c: applied patch from Kupriyanov Anatolij fixing
a bug in XML Schemas facet comparison #310893
Daniel
|
|
77005e6f
|
2005-07-19T16:26:18
|
|
fixed the error reporting for not transitions fixed output Daniel
* xmlregexp.c xmlschemas.c: fixed the error reporting for
not transitions
* result/schemas/any5_0_0* result/schemas/any5_0_2*
result/schemas/any5_1_0*: fixed output
Daniel
|
|
9efc476b
|
2005-07-19T14:33:55
|
|
fixing bug #172215 about foreign namespaces by adding support for negated
* xmlregexp.c xmlschemas.c include/libxml/xmlautomata.h: fixing
bug #172215 about foreign namespaces by adding support for
negated string transitions. Error messages still need to be
improved.
* test/schemas/any5* result/schemas/any5*: adding regression
tests for this.
Daniel
|
|
a980befc
|
2005-07-18T21:34:03
|
|
fixed xsd:all when used in conjunction with substitution groups adding
* xmlschemas.c: fixed xsd:all when used in conjunction with
substitution groups
* test/schemas/allsg_* result/schemas/allsg_*: adding specific
regression tests, strangely missing from NIST/Sun/Microsoft
testsuites
Daniel
|
|
afc05b68
|
2005-07-17T06:11:19
|
|
fixed bug #307508, a bad automata was built but this showed as an
* xmlschemas.c: fixed bug #307508, a bad automata was built but
this showed as an indeterminist result
Daniel
|
|
da0aa4cf
|
2005-07-13T23:07:49
|
|
applied patch from Marcus Boerger to route relaxng and schemas error
* error.c relaxng.c xmlreader.c xmlschemas.c include/libxml/relaxng.h
include/libxml/xmlschemas.h: applied patch from Marcus Boerger
to route relaxng and schemas error messages when using the reader
through the structured interface if activated.
* elfgcchack.h doc/* testapi.c: rebuilt since this add new APIs
to test.
Daniel
|
|
1f33c4d6
|
2005-07-10T21:38:31
|
|
preparing to make testsuite releases along with code source releases fixed
* xstc/Makefile.am README README.tests Makefile.tests Makefile.am:
preparing to make testsuite releases along with code source releases
* gentest.py testapi.c: fixed a couple of problem introduced by
the new Schemas support for Readers
* xpath.c: fixed the XPath attribute:: bug #309580, #309864 in a crude
but simple way.
* xmlschemas.c include/libxml/tree.h: fixed a couple of problems
raised by the doc builder.
* doc/*: made rebuild
Daniel
|
|
df4223ec
|
2005-07-10T19:52:06
|
|
fixed a bug introduced on last commit daniel
* xmlschemas.c: fixed a bug introduced on last commit
daniel
|
|
f10ae12c
|
2005-07-10T19:03:16
|
|
fixed a typo pointed by Jeroen Ruigrok increased the APIs for xmlReader
* doc/xmllint.1 doc/xmllint.html doc/xmllint.xml: fixed a typo
pointed by Jeroen Ruigrok
* include/libxml/xmlreader.h include/libxml/xmlschemas.h: increased
the APIs for xmlReader schemas validation support
* xmllint.c xmlreader.c xmlschemas.c: xmlReader schemas validation
implementation and testing as xmllint --stream --schema ...
Daniel
|
|
971771ef
|
2005-07-09T17:32:57
|
|
fix for #309761 from Dylan Shell added xmlSchemaSAXPlug and
* parser.c: fix for #309761 from Dylan Shell
* xmlschemas.c include/libxml/xmlschemas.h: added xmlSchemaSAXPlug
and xmlSchemaSAXUnplug generic APIs for SAX Schemas validation.
* xmllint.c: couple of fixes plus added descriptions for --sax and
--sax1
Daniel
|
|
c306d904
|
2005-07-08T21:37:44
|
|
Added c-props-correct constraint to check for equal cardinality of
* xmlschemas.c: Added c-props-correct constraint to check
for equal cardinality of keyref/key.
* include/libxml/xmlerror.h: Added an error code.
|
|
85aed6d0
|
2005-07-08T18:06:18
|
|
tiny fix in xmlSchemaValidateStream() if a user-provided SAX handler is
* xmlschemas.c: tiny fix in xmlSchemaValidateStream() if a
user-provided SAX handler is given.
|
|
f0af8ec6
|
2005-07-08T17:27:33
|
|
fix some potential leaks in error cases. added --sax, to allow testing of
* parser.c: fix some potential leaks in error cases.
* xmllint.c: added --sax, to allow testing of --schemas --sax and
various other combinations.
* xmlschemas.c: fix a couple of tiny problems in
xmlSchemaValidateStream()
Daniel
|
|
72d3adc4
|
2005-07-08T16:43:37
|
|
Changed xmlSchemaValidateFile() to use xmlSchemaValidateStream()
* xmlschemas.c: Changed xmlSchemaValidateFile() to use
xmlSchemaValidateStream() internally.
|
|
cdc82737
|
2005-07-08T15:04:06
|
|
added the missing entity to the document internal subset to avoid errors
* test/relaxng/docbook_0.xml: added the missing entity to the
document internal subset to avoid errors if the DocBook catalogs
are not there
* xmlschemas.c: first cut at implementing xmlSchemaValidateStream()
untested yet
Daniel
|
|
39e5c890
|
2005-07-03T22:48:50
|
|
fixing a leak detected by testapi in xmlDOMWrapAdoptNode, and fixing
* testapi.c tree.c: fixing a leak detected by testapi in
xmlDOMWrapAdoptNode, and fixing another side effect in testapi
seems to pass tests fine now.
* include/libxml/parser.h parser.c: xmlStopParser() is no more limited
to push mode
* error.c: remove a warning
* runtest.c xmllint.c: avoid compilation errors if only some parts
of the library are compiled in.
Daniel
|
|
9c215eb3
|
2005-06-21T08:38:49
|
|
Fixed NULL values to be validated as empty string values (reported by
* xmlschemas.c: Fixed NULL values to be validated as empty
string values (reported by Dhyanesh to the mailing list).
Adjusted text concatenation of mixed content.
|
|
84a56e31
|
2005-06-16T12:44:35
|
|
Fixed SAX2 validation: grow of internal namespace list, appending of
* xmlschemas.c: Fixed SAX2 validation: grow of internal
namespace list, appending of element character content.
* xstc/xstc.py: Added "--sax" option for SAX2 validation.
|
|
81562d2d
|
2005-06-15T13:27:56
|
|
if sax1 is used and input is a file use the old API xmlParseFile()
* xmllint.c: if sax1 is used and input is a file use the old
API xmlParseFile()
* xmlschemas.c: cleanups
* doc/* testapi.c elfgcchack.h: rebuilt to add python bindings
for the new functions in Schemas.
Daniel
|
|
c63fbbff
|
2005-06-15T12:54:05
|
|
Added xmlSchemaValidateFile() to the public API. This will use SAX2-driven
* xmlschemas.c include/libxml/xmlschemas.h: Added
xmlSchemaValidateFile() to the public API. This will use
SAX2-driven validation.
|
|
9ca11bfc
|
2005-06-14T19:24:47
|
|
Some changes/fixes to the streaming evaluation. A bit of support for
* pattern.c: Some changes/fixes to the streaming evaluation.
* xmlschemas.c: A bit of support for parsing the schema for
schema. Fixed attribute derivation when the use is
"prohibited" and was "optional". Fixed an attribute construction
bug, a left-over from the time, where <complexContent>,
<extension>, etc. where created as structs.
|
|
828f6547
|
2005-06-09T11:23:39
|
|
Fixed an attribute fixed/default value constraint error.
* xmlschemas.c result/schemas/include1_0_0.err:
Fixed an attribute fixed/default value constraint error.
|
|
4efd90d9
|
2005-06-09T10:32:53
|
|
Changed the validation process to be able to work in streaming mode. Some
* xmlschemas.c xmlschemastypes.c include/libxml/schemasInternals.h
include/libxml/xmlschemastypes.h: Changed the validation process
to be able to work in streaming mode. Some datatype fixes,
especially for list and union types. Due to the changes the
error report output has changed in most cases. Initial migration to
functions usable by both, the parser and the validator. This should
ease a yet-to-come XS construction API in the long term as well.
|
|
bd6c3f7d
|
2005-05-25T17:29:36
|
|
Fixed facet errors to be channelled back for union type members;
* xmlschemas.c: Fixed facet errors to be channelled back for
union type members; facet-validation will stop now on the
first error. Reported by GUY Fabrice to the mailing-list.
* xmlschemastypes.c: Changed to ignore lengh-related facet
validation for QNames and NOTATIONs as proposed by the
schema people.
* test/schemas/union2* result/schemas/union2*: Added
regression tests for union types (by GUY Fabrice).
|
|
c0e833f0
|
2005-04-19T15:02:20
|
|
Removed 5 unnecessary dereferences (reported by Andriy, bug #301074).
* xmlschemas.c xmlregexp.c: Removed 5 unnecessary
dereferences (reported by Andriy, bug #301074).
|
|
187ea5f6
|
2005-04-19T11:25:43
|
|
Removed workaround for bug #172215, since it does more harm in some
* xmlschemas.c: Removed workaround for bug #172215, since it
does more harm in some scenarios. Added some of the
"Particle Restriction OK" constraints - not yet enabled.
|
|
c872afbd
|
2005-04-18T10:57:04
|
|
Added output of canonical values in identity-constraint error messages.
* xmlschemas.c: Added output of canonical values in
identity-constraint error messages.
* xmlschemastypes.c include/libxml/xmlschemastypes.h:
Added xmlSchemaGetCanonValueWhtsp() to the API.
Further enhancement of the canonical value
conversion.
* test/schemas/changelog093_0.*: Added test with an XSD
submitted by Randy J. Ray.
|
|
016d92e3
|
2005-04-08T20:08:40
|
|
Added substitution group constraints; changed the build of the
* xmlschemas.c: Added substitution group constraints; changed
the build of the pre-computed substitution groups. Channeled
errors during xsi assembling of schemas to the validation
context. Fixed a big memory leak, which occured when using
IDCs: the precomputed value of attributes was not freed if
the attribute did not resolve to an IDC field (discovered
with the help of Randy J. Ray's schema, posted to the
xmlschema-dev maling list).
|
|
1a99a397
|
2005-04-08T11:23:56
|
|
Added "Particle correct 2" to parsing of model groups. Added handling
* xmlschemas.c: Added "Particle correct 2" to parsing of model groups.
Added handling substitution groups inside <choice> and <sequence>;
for <all> this is not supported yet. Changed circular checks for
model groups definitions. "memberTypes" are processed at different
levels now: component resolution first, construction later; this
goes hand in hand with a global change to handle component
resolution in a distinct phase. Fixed invalid default values for
elements to mark the schema as invalid; this just resulted in an
error report previously, but the schema was handled as valid.
Separated the assignment of the model groups to referencing
model group definition references (i.e. particles); this was
needed to perform the circularity check for model group definitions.
Added "Element Declaration Properties Correct (e-props-correct)"
constraints. Separated component resolution for simple/complex
types.
* include/libxml/schemasInternals.h: Added a flag for substitution
group heads.
|
|
5e371a04
|
2005-04-05T15:08:05
|
|
Added "Type Derivation OK (Complex)" constraints and anchored them in the
* xmlschemas.c: Added "Type Derivation OK (Complex)" constraints
and anchored them in the "Element Locally Valid (Element)"
constraints. This restricts the type substitution via "xsi:type".
|
|
f3598458
|
2005-04-05T11:10:45
|
|
patch from Matthew Burgess to improve some schemas facets validation
* xmlschemas.c: patch from Matthew Burgess to improve some schemas
facets validation messages.
Daniel
|
|
aba15f76
|
2005-04-01T15:17:27
|
|
Corrected 'length' facet validation for QNames and notations. Corrected
* xmlschemastypes.c: Corrected 'length' facet validation for
QNames and notations. Corrected xmlSchemaGetCanonValue: some
data types did not return a value if already in normalized
form.
* xmlschemas.c include/libxml/schemasInternals.h:
Eliminated creation of structs for <restriction>, <extension>,
<simpleContent>, <complexContent>, <list> and <union>: the
information is now set directly on the corresponding simple/
complex type. Added some more complex type constraints.
Added facet derivation constraints. Introduced "particle"
components, which seem to be really needed if applying
constraints. Corrected/change some of the parsing functions.
This is all a bit scary, since a significant change to the code.
* result/schemas/src-element2-*.err result/schemas/element-*.err:
Adapted regression test results.
|
|
5d4644ef
|
2005-04-01T13:11:58
|
|
revamped the elfgcchack.h format to cope with gcc4 change of aliasing
* doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h
format to cope with gcc4 change of aliasing allowed scopes, had
to add extra informations to doc/libxml2-api.xml to separate
the header from the c module source.
* *.c: updated all c library files to add a #define bottom_xxx
and reimport elfgcchack.h thereafter, and a bit of cleanups.
* doc//* testapi.c: regenerated when rebuilding the API
Daniel
|
|
0e460da3
|
2005-03-30T22:47:10
|
|
another patch from Brent Hendricks to add new handlers with the various
* python/generator.py python/libxml.py: another patch from Brent
Hendricks to add new handlers with the various validity contexts
* python/tests/Makefile.am python/tests/validDTD.py
python/tests/validRNG.py python/tests/validSchemas.py: also
added the regression tests he provided
Daniel
|
|
53b5e052
|
2005-03-24T11:05:13
|
|
Fixed call to a facet error report: the type of the error was wrong,
* xmlschemas.c: Fixed call to a facet error report: the type of
the error was wrong, resulting in a segfault (bug #171220, reported
by GUY Fabrice).
|
|
a62f75f1
|
2005-03-21T22:01:47
|
|
Removed a stupid bug in xmlSchemaValidateAttributes, failing to build a
* xmlschemas.c: Removed a stupid bug in xmlSchemaValidateAttributes,
failing to build a linked list correctly (bug #169898, reported
by bing song, hmm...).
|
|
b34ad1b6
|
2005-03-21T20:10:31
|
|
Fixed a segfault, which occured during bubbling of IDC nodes (bug #170779
* xmlschemas.c: Fixed a segfault, which occured during bubbling
of IDC nodes (bug #170779 and #170778, reported by GUY Fabrice):
a variable was missed to be reset in a loop. Deactivated bubbling,
if not referenced by a keyref.
|
|
289dbb45
|
2005-03-17T12:39:31
|
|
Removed inheritance of "mixed" content type for short-hand restrictions of
* xmlschemas.c: Removed inheritance of "mixed" content type for
short-hand restrictions of "anyType" (reported by Guy Fabrice
to the mailing list). Added the namespace conversion (chameleon
includes) for the base type reference of <restriction> and
<extension>.
* test/schemas/bug152470_1.xsd: Adapted due to the above change
of "mixed" inheritance.
|
|
bc69d4f9
|
2005-03-17T10:04:46
|
|
fixed a = -> == error pointed by GUY Fabrice Daniel
* xmlschemas.c: fixed a = -> == error pointed by GUY Fabrice
Daniel
|
|
cc5e2330
|
2005-03-16T21:55:35
|
|
more debug messages from Matthew Burgess xmlSchemaValidateLengthFacet API
* xmlschemas.c: more debug messages from Matthew Burgess
* xmlschemastypes.c: xmlSchemaValidateLengthFacet API missing check.
Daniel
|
|
478d693f
|
2005-03-16T16:29:18
|
|
Hopefully finished validation against facets to use the normalized value
* xmlschemas.c xmlschemastypes.c include/libxml/xmlschemastypes.h:
Hopefully finished validation against facets to use the normalized
value of both, the facets and instance values. Added
xmlSchemaValidateLengthFacetWhtsp(), xmlSchemaValidateFacetWhtsp()
and xmlSchemaGetValType() to the schema API.
|
|
cffc1c7a
|
2005-03-12T18:54:55
|
|
removed a static buffer in xmlByteConsumed(), as pointed by Ben Maurer,
* encoding.c: removed a static buffer in xmlByteConsumed(),
as pointed by Ben Maurer, fixes #170086
* xmlschemas.c: remove a potentially uninitialized pointer warning
Daniel
|
|
b474fa40
|
2005-03-11T12:34:42
|
|
The schema parser will stop if components could not be resolved. This is
* xmlschemas.c: The schema parser will stop if components could
not be resolved. This is not conforming to the spec but for now
will avoid internal errors during type fixup and content model
creation. Restructured inclusion/import of schemata: this avoids
duplicate, self and circular inclusion. Chameleon includes are
still workarounded. Added restriction to disallow references to
non-imported namespaces. Corrected parsing of <group>.
* result/schemas/bug167754_0_0*: Added a missing test result.
|
|
7f3efa97
|
2005-03-07T17:41:58
|
|
Tiny restructuring of the validation start-up functions. Added cleanup of
* xmlschemas.c: Tiny restructuring of the validation start-up
functions. Added cleanup of the validation context at the
end of validation. This takes care of the validation context
being reused.
|
|
9b77aa0b
|
2005-03-04T22:04:16
|
|
Added IDC validation of anySimpleType attribute values; anyway the IDC key
* xmlschemas.c: Added IDC validation of anySimpleType attribute
values; anyway the IDC key comparison is restricted to
anySimpleType <--> string based types. For other types we
would possibly need the canonical lexical representation of
them; this sounds not performant, since we would need to
build such a representation each time we want to compare against
anySimpleType. TODO: think about buffering the canonical values
somewhere. Fixed error reports for default attributes to work
without a node being specified. This all and the enabling of IDC
validation fixes bug #165346 (reported by Benoit Gr?goire - could
not read his last name correctly from bugzilla).
|