DATEX-II-EU / DatexII

Main repository for issues and bugs for the DATEXII standard
0 stars 0 forks source link

Name clash for uniqueness constraint if two classes from different NS have the same name (Bugzilla Bug 477) #477

Open datexii opened 3 months ago

datexii commented 3 months ago

This issue was created automatically with bugzilla2github.py

Bugzilla Bug 477

Date: 2024-03-14T17:13:06+01:00 From: @JosefKaltwasser To: @JosefKaltwasser

Last updated: 2024-03-18T13:00:29+01:00

datexii commented 3 months ago

Comment 1921

Date: 2024-03-14 17:13:06 +0100 From: @JosefKaltwasser

If two classes of type Identifiable or VersionedIdentifiable from different Namespaces have the same name, the uniqueness constraints will have a name clash. The XSD mapping has to include the namespace prefix in the name created for the constraints.

datexii commented 3 months ago

Comment 1925

Date: 2024-03-18 13:00:29 +0100 From: @JosefKaltwasser

Proposal: In section A.3.5.2 replace <xs:unique name=""Element+TargetClass"Constraint"> with <xs:unique name=""Element+NamespacePrefix+TargetClass"Constraint">