Commit Graph

221 Commits

Author SHA1 Message Date
Valentine Reboul
1c7ee7d95d [PA07-083][Q831-010] cleanup of ineffective use-clauses
Change-Id: I351103d11afd53b4c8c264a2e9df9711df8d35a0
2017-09-14 12:41:38 +02:00
Emmanuel Briot
53dc51bf5c Update copyright notices
Change-Id: Iae1283292b460ead48dedc565d6f24259e497e69
2017-01-03 10:02:38 +01:00
Emmanuel Briot
bbf72ad4f4 Compare local names when overriding inherited attributes.
Second issue from P801-022

Change-Id: I73a488658f2110f6735d7531b4620d13783c82e1
2016-08-17 13:04:10 +02:00
Emmanuel Briot
a56a0902a9 Fix memory leaks while validating invalid XML schemas
L328-026

Change-Id: Ic49c17e2d275861131178506fd55d07bd2d8f412
2016-02-17 18:02:08 +01:00
Emmanuel Briot
1262b6c064 Update copyright headers to 2016
Change-Id: I70135cb5146de304f14587d1a518c94e804a8e6c
2016-02-17 18:02:07 +01:00
Emmanuel Briot
67fb7dd10e Update copyright notices to 2014
N103-019

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@221486 936e1b1b-40f2-da11-902a-00137254ae57
2014-01-06 10:27:30 +00:00
Emmanuel Briot
8c176c38bc Include the value of default attributes in the SAX and DOM events
when they are specified in the XSD file.
M325-034

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@204783 936e1b1b-40f2-da11-902a-00137254ae57
2013-03-26 10:28:13 +00:00
Emmanuel Briot
6363ce096b Update copyright notices to 2013
M103-015

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@200406 936e1b1b-40f2-da11-902a-00137254ae57
2013-01-08 10:54:28 +00:00
Emmanuel Briot
2c4e6449f4 (Do_Match): fix uninitialized variable L903-001
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@195490 936e1b1b-40f2-da11-902a-00137254ae57
2012-09-24 10:00:07 +00:00
Emmanuel Briot
a284c6e02f Fix suffix for shared libraries on darwin and Windows (we were
hard-coding .so)

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@192267 936e1b1b-40f2-da11-902a-00137254ae57
2012-07-13 13:48:54 +00:00
Emmanuel Briot
f874503f40 Check that an attribute's simple type actually exists.
It was possible for instance to specify "xsd:natural" as a type, and no
error was reported. XML/Ada behaved as if the attribute was of type "any".
L103-011

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@183038 936e1b1b-40f2-da11-902a-00137254ae57
2012-01-03 15:07:52 +00:00
Emmanuel Briot
5befffea2b Change header to use GPL version 3
KC20-003

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@182682 936e1b1b-40f2-da11-902a-00137254ae57
2011-12-20 09:09:12 +00:00
Emmanuel Briot
8a06111ae0 Fix unreferenced entities
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@182447 936e1b1b-40f2-da11-902a-00137254ae57
2011-12-14 08:45:14 +00:00
Emmanuel Briot
d51fed727f Change the way we create the FSM for <all>.
The previous construction was creating states for all possible
 combinations of the children nodes, resulting in an explosion
 in the number of states. Through additional capabilities added
 to Sax.State_Machines, we now have data associated with each
 active state. In particular, for <all> states this is used to
 memorize which children have already been visited.
for K518-020 and KC01-028

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@182156 936e1b1b-40f2-da11-902a-00137254ae57
2011-12-08 13:31:17 +00:00
Emmanuel Briot
95a2bfd674 Improved support for multi-tasking in the schema module.
It is now possible to parse a grammar once, and then use it from different
 tasks with different parsers.
Added locking in a few places, and make sure the NFA is not modified while
 processing input events.
Added automatic test
K708-021

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@176524 936e1b1b-40f2-da11-902a-00137254ae57
2011-07-26 13:34:54 +00:00
Pascal Obry
5f5aadd1d1 Minor reformatting.
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@176146 936e1b1b-40f2-da11-902a-00137254ae57
2011-07-12 21:00:34 +00:00
Emmanuel Briot
b7f3d18180 Added support for XML 1.0 (Fifth Edition)
The changes mostly deal with the range of characters allowed for names.
 For backward compatibility (in particular because the Schema testsuite
 still requires the third edition) the user can still chose to use earlier
 versions of the standard
Needed to support the latest version of the XML testsuite
JB09-020

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@166907 936e1b1b-40f2-da11-902a-00137254ae57
2010-11-09 15:22:58 +00:00
Emmanuel Briot
eb51adb400 Fix incorrect handling of the whitespace facet for some of the
predefined types
J302-043

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@166752 936e1b1b-40f2-da11-902a-00137254ae57
2010-11-05 10:54:33 +00:00
Emmanuel Briot
a12e900fbf In a <simpleContent>, a restriction did not inherit the attributes from
its parent (because we did not create the Details component of the
 type, and thus did not know the base type).
J302-043

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@166750 936e1b1b-40f2-da11-902a-00137254ae57
2010-11-05 10:54:26 +00:00
Emmanuel Briot
d0f9e29a9e Need to normalize attribute whitespaces before checking they are valid.
Make sure whitespace normalization occurs for NMTOKENS
J302-043

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@166748 936e1b1b-40f2-da11-902a-00137254ae57
2010-11-05 10:54:19 +00:00
Emmanuel Briot
ffe0b9f25e <attribute use="prohibited" fixed="...">
is only forbidden in XSD >= 1.1
J302-043

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@166746 936e1b1b-40f2-da11-902a-00137254ae57
2010-11-05 10:54:12 +00:00
Emmanuel Briot
0cfd6fb882 Fix invalid memory access reported by valgrind
(make errors): group error messages by categories. Helps focus on specific
 types of errors
 J302-043

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@166744 936e1b1b-40f2-da11-902a-00137254ae57
2010-11-05 10:53:52 +00:00
Emmanuel Briot
5ee7bdb6a3 Remove commented out code
(For_Each_Item): moved from schema-validators-lists to sax-utils.
 The former package is now removed
J302-043

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@166740 936e1b1b-40f2-da11-902a-00137254ae57
2010-11-05 10:51:49 +00:00
Emmanuel Briot
eefff69a4d Normalize "fixed" values for elements and attributes, so that comparison
later on is correct
Testsuite results: 869 failures, XF:0, XP:0
J302-043

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@166735 936e1b1b-40f2-da11-902a-00137254ae57
2010-11-05 10:50:46 +00:00
Emmanuel Briot
8237ddfb1c (Replace_State): also mark states accessible through empty transitions.
Testsuite: 872 failures, XF:1, XP:3
J302-043

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@166733 936e1b1b-40f2-da11-902a-00137254ae57
2010-11-05 10:50:42 +00:00