Commit Graph

692 Commits

Author SHA1 Message Date
Arnaud Charlet
337bce3602 Minor changes to make compatible with No_Dynamic_Accessibility_Checks
Change-Id: I5a1d6226afb1000bbe57db46be0a66322c31f858
TN: TA25-001
2021-05-25 10:25:41 -04:00
Fedor Rybin
6d195c06e0 Fix float value support in schema parsing
for U112-003

Change-Id: I8cf1587ca13122a615768069d9ef51b8421658f3
2021-01-17 14:48:40 +03:00
Fabien Chouteau
512a7fc92d Rename shared.gpr into xmlada_shared.gpr
For the same reason as the external variables, shared.gpr can be a
source of conflict between different projects. For instance with AWS.

This change has no impact on the installation since shared.gpr is not
provided in the installation.

Part of T715-030.

Change-Id: Ie0ac01a23c34981b75055fbe8a45db9cc50a581f
2020-08-07 19:30:24 +02:00
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
1dba7d2453 ("<", "<="): attempt to make XML_Float comparison work on ppc-linux
Change-Id: I8401a06b41e8f88ecff1eb60bc5e3df4631547b6
2016-10-03 10:48:30 +02: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
a685dd2dfc Normalize XSD path to avoid duplicate parsing
When a XSD file is referenced via a relative path with symbolic links
or "." and "..", it could be parsed several times, possibly resulting
in errors like duplicate IDs.

P801-022

Change-Id: I7e12b67e3018b3fc3aeeccb5c428c9aea14dfa39
2016-08-17 12:12:44 +02:00
Emmanuel Briot
50d313e1f8 Increase internal limit for maxOccurs
We still emit a warning for large values, but do not prevent validating
documents.

P812-015

Change-Id: If61b53425f27417f0ae108c5a79b8edd7f690f8c
2016-08-16 17:30:10 +02:00
Emmanuel Briot
0d89040fe6 Fix handling of <choice> with elements with maxOccurs
If a <choice> has two or more elements with a maxOccurs property,
they will allow a mix of the elements, when it should only allow a
repeat of one of the elements.

The simple fix to the state machine is in schema-schema_readers.adb.
But this change resulted in a regression in the testsuite, when one
of the elements in the <choice> is a <any>. At this point, we are
trying to replace the states in the state machine, but did not
properly chain them, and therefore some states accessible via
empty transitions were not properly accessible.

The order of suggested elements in error messages was reversed in
some cases, but the error message is still value, so adjust the
baseline.

P621-020

Change-Id: I1cfb58e2fd45cfd0fc1660fa8727ab679543ba5b
2016-06-23 13:50:48 +02:00
Emmanuel Briot
b02d093dc7 Fix handling of sequences with unbounded elements
The sequence itself was allowed to repeat itself

P616-033

Change-Id: I62f34a63b34da17da4a8c9a6afb253f88196a981
2016-06-17 11:14:32 +02:00
Emmanuel Briot
1184d97d88 Add support for unicode 8 names
Contributed by Nicolas Boulenguez (nicolas at debian.org)

Remove the old convert.pl that had been used to import the old list of
names, and replace with a full-Ada importer instead.
Import all names from the Unicode 8 standard.

Change-Id: I03bfa4d0ff769abc8a3b2e23149e1b745f3a8f10
2016-06-02 10:53:20 +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
5278eef210 Fix validation of XML_Float comparisons
OC02-009

Change-Id: I16b62a613f361412ac1c9f423538217a56778bc6
2015-12-03 10:15:55 +01:00
Emmanuel Briot
dbc8bab48e (Current_Node): new subprogram
OB19-014

Change-Id: If39f990d0c2e9aebaae9f6b5dd9d19570dfc8401
2015-11-19 14:13:24 +01:00
Emmanuel Briot
3fbca59487 Add support for preloading multiple XSD files and reuse them
O930-031

XSD files with no namespace information cannot be mixed into the
same XML_Grammar, or they will conflict with each other. The
solution is therefore to preload each of them into its own XML_Grammar,
and then let the validating parser chose that grammar dynamically
by overriding the new primitive operation Parse_Grammar.

Change-Id: I337d09259c6b2b18d9b91b4ded847f7f8dcd6eab
2015-10-13 15:18:30 +02:00
Emmanuel Briot
8c75c5323b Add comment (from O930-031)
Change-Id: Ib42e09d4dfac0d5eaf5678b19c763b8ffde4e316
2015-10-13 12:28:52 +02:00
Emmanuel Briot
63b47c6599 Reorganize testsuites
Move all the */test/ directories to tests/*
Move all tests that potentially contain customer code or data to tests/adacore
 These will be moved to a separate git repository

Part of O527-038

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@240170 936e1b1b-40f2-da11-902a-00137254ae57
2015-07-09 15:17:03 +02:00
Emmanuel Briot
44bb12c67c The tests can now be run outside of the build directory.
To run the tests, we no longer need to have run "make" first.
Instead, "make test" requires: shared.gpr and the W3C tests, and will
only recompile the sources found in */test/*, not the code of XML/Ada itself.
So will "make run_test".
A new target "run_test_and_setenv" was added for developers who need to
test the local build.

NA17-039

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@233386 936e1b1b-40f2-da11-902a-00137254ae57
2014-10-20 10:03:11 +00:00
Pascal Obry
d214ac70ea Rework the XMLAda build and install procedure.
An aggregate project is now used to build XMLAda. The builder is now
gprbuild and the installation is conducted by gprinstall. This has
permitted a large clean-up of the makefile.

For N403-037.

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@232625 936e1b1b-40f2-da11-902a-00137254ae57
2014-09-24 07:47:03 +00:00
Emmanuel Briot
b7f4eeb501 Improve error message when parsing invalid date.
Fix regression N430-025.
For some reason, the compile is no longer emitted a constraint_error,
and therefore the output of the test had changed. Add an explicit test
instead.

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@227069 936e1b1b-40f2-da11-902a-00137254ae57
2014-05-05 08:49:48 +00:00
Emmanuel Briot
4069ed6cee New configure option --enable-build
This is for consistency with GtkAda and GPS, and enables one to
chose the build mode at configure time rather than through environment
variables.
Use pragma Initialize_Scalars when in Debug mode, also for consistency.

N324-002

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@224970 936e1b1b-40f2-da11-902a-00137254ae57
2014-03-24 09:32:59 +00:00
Emmanuel Briot
317d5a7903 Fix compiler warnings in Debug mode
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@221777 936e1b1b-40f2-da11-902a-00137254ae57
2014-01-10 09:05:34 +00: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