[umbrello] [Bug 502519] New: xmllint complains about element Model: validity error : Syntax of value for attribute xmi.id of Model is not valid"
"Ralf Habacker" <[email protected]> Mon, 07 Apr 2025 11:37:41 +0000
| Newsgroups | gmane.linux.umbrello.devel |
|---|---|
| Message-ID | <[email protected]/> |
https://bugs.kde.org/show_bug.cgi?id=3D502519
Bug ID: 502519
Summary: xmllint complains about element Model: validity error
: Syntax of value for attribute xmi.id of Model is not
valid"
Classification: Applications
Product: umbrello
Version: unspecified
Platform: Other
OS: All
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Blocks: 415989
Target Milestone: ---
When checking the validation support for xmi files requested on
https://bugs.kde.org/show_bug.cgi?id=3D415989#c2, problems occurred in conn=
ection
with xml attributes of type ID and IDREFS.
STEPS TO REPRODUCE
1. git clone umbrello sources from [email protected]:sdk/umbrello.git
2. checkout branch release/25.04
3. enter checked out directory
3. run `tools/lint-xmi-files models/diagrams/class`
OBSERVED RESULT
The tools started in 3. prints out=20
models/diagrams/class/all-elements.xmi:28: element Model: validity error :
Syntax of value for attribute xmi.id of Model is not valid
models/diagrams/class/all-elements.xmi:32: element DataType: validity error=
:
Syntax of value for attribute xmi.id of DataType is not valid
models/diagrams/class/all-elements.xmi:60: element Interface: validity erro=
r :
Syntax of value for attribute xmi.id of Interface is not valid
models/diagrams/class/all-elements.xmi:62: element TemplateParameter: valid=
ity
error : Syntax of value for attribute namespace of TemplateParameter is not
valid
models/diagrams/class/all-elements.xmi:129: element Model: validity error :
Syntax of value for attribute xmi.id of Model is not valid
models/diagrams/class/all-elements.xmi:132: element Model: validity error :
Syntax of value for attribute xmi.id of Model is not valid
models/diagrams/class/all-elements.xmi:135: element Model: validity error :
Syntax of value for attribute xmi.id of Model is not valid
models/diagrams/class/all-elements.xmi:138: element Model: validity error :
Syntax of value for attribute xmi.id of Model is not valid
models/diagrams/class/all-elements.xmi:30: element Package: validity error :
IDREFS attribute namespace references an unknown ID "Logical"
models/diagrams/class/all-elements.xmi:30: element Package: validity error :
IDREFS attribute namespace references an unknown ID "View"
models/diagrams/class/all-elements.xmi:45: element Class: validity error :
IDREFS attribute namespace references an unknown ID "Logical"
models/diagrams/class/all-elements.xmi:45: element Class: validity error :
IDREFS attribute namespace references an unknown ID "View"
models/diagrams/class/all-elements.xmi:46: element Enumeration: validity er=
ror
: IDREFS attribute namespace references an unknown ID "Logical"
models/diagrams/class/all-elements.xmi:46: element Enumeration: validity er=
ror
: IDREFS attribute namespace references an unknown ID "View"
models/diagrams/class/all-elements.xmi:51: element Package: validity error :
IDREFS attribute namespace references an unknown ID "Logical"
models/diagrams/class/all-elements.xmi:51: element Package: validity error :
IDREFS attribute namespace references an unknown ID "View"
models/diagrams/class/all-elements.xmi:67: element Class: validity error :
IDREFS attribute namespace references an unknown ID "Logical"
models/diagrams/class/all-elements.xmi:67: element Class: validity error :
IDREFS attribute namespace references an unknown ID "View"
models/diagrams/class/all-elements.xmi:72: element Dependency: validity err=
or :
IDREFS attribute namespace references an unknown ID "Logical"
models/diagrams/class/all-elements.xmi:72: element Dependency: validity err=
or :
IDREFS attribute namespace references an unknown ID "View"
EXPECTED RESULT
The errors should not be shown
SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.6
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
ADDITIONAL INFORMATION
According to
https://www.liquid-technologies.com/Reference/Glossary/DTD_Datatypes_ID.html
there are some limitations for valid ID and IDREFS values:=20=20
It must conform to the EBNF for "Name". In simple terms this means a "N=
ame"
has to start with a letter or ':' or '_'. The rest of the characters must be
numbers, letters ':', '_', '-', or '.' it can not contain any spaces.
For example, since =E2=80=9CLogical View=E2=80=9D is used here as the value=
for the 'xmi.id'
attribute, the problem is that the value contains spaces, which is not
permitted.
Other examples are:
<UML:Model stereotype=3D=E2=80=9Cfolder=E2=80=9D ... xmi.id=3D=E2=80=9C=
Use Case View=E2=80=9D name=3D=E2=80=9CUse Case
View=E2=80=9D>
<UML:Model stereotype=3D=E2=80=9Cfolder=E2=80=9D ... xmi.id=3D=E2=80=9C=
Component View=E2=80=9D name=3D=E2=80=9CComponent
View=E2=80=9D>
<UML:Model stereotype=3D=E2=80=9Cfolder=E2=80=9D ... xmi.id=3D=E2=80=9C=
Deployment View=E2=80=9D
name=3D=E2=80=9CDeployment View=E2=80=9D>
<UML:Model stereotype=3D=E2=80=9Cfolder=E2=80=9D ... xmi.id=3D=E2=80=9C=
Entity Relationship Model=E2=80=9D
name=3D=E2=80=9CEntity Relationship Model=E2=80=9D>
The problem with IDREFS occurs with references that contain spaces, which
occurs, for example, with the 'namespace' attribute as shown below:
<UML:Package stereotype=3D"folder" namespace=3D"Logical View" ... "
xmi.id=3D"Datatypes" name=3D"Datatypes">
Referenced Bugs:
https://bugs.kde.org/show_bug.cgi?id=3D415989
[Bug 415989] Dosnt Open/Delete class Diagram element
--=20
You are receiving this mail because:
You are the assignee for the bug.=