700 Commits

Author SHA1 Message Date
Vadim Godunko
9fc5864c69 Disable RPATH generation for libraries. 2026-01-26 12:44:26 +04:00
Vadim Godunko
2e587fe830 Check content of the base type to match complex type 2025-01-31 13:05:43 +04:00
Vadim Godunko
df941e6352 Escape - character inside character class expressions. 2025-01-30 17:42:28 +04:00
Vadim Godunko
34734991a4 Exclude \? from the list of unsupported constructs. 2025-01-20 18:39:28 +04:00
Vadim Godunko
12b5485989 Propagate simple type for validation of the content. 2025-01-20 08:13:06 +00:00
Vadim Godunko
558b9cf4cc Fix handling of the base complexType derived from simpleType 2025-01-20 08:13:06 +00:00
squirek
76735e1990 Remove unnecessary pragma Unreferenced
This patch removes several unnecessary pragma Unreferenced's identified
due to work under U122-031.

[changelog]

* schema/schema-schema_readers.adb
(Create_NFA): Remove pragmas.

TN: U122-031
Change-Id: Ice4d02315100cd4b9ad31cba16ff5d0e54976527
2021-12-23 17:34:51 +00:00
Vasiliy Fofanov
26e0d6b450 Clean up redundant context clauses. UC14-034
Change-Id: I33ca879d3e0f670385b463dd13f2f10074398df2
2021-12-16 12:29:38 +00:00
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