[Debian-med-packaging] Bug#859650: Schemas validity error : Element 'value': '6.1035156E-5' is not a valid value of the atomic type 'DecimalString
Mathieu Malaterre
malat at debian.org
Wed Apr 5 14:02:41 UTC 2017
Package: dcmtk
Version: 3.6.1~20170228-1~exp1
Tags: upstream
Looks like dsr2xml.xsd is a bit too restrictive on it's representation
of VR:DS as used in a DICOM SR instance.
Eg:
$ xmllint --noout --schema /usr/share/dcmtk/dsr2xml.xsd test.xml
test.xml:253: element value: Schemas validity error : Element
'{http://dicom.offis.de/dcmsr}value': '6.1035156E-5' is not a valid
value of the atomic type '{http://dicom.offis.de/dcmsr}DecimalString'.
with:
<num>
<relationship>CONTAINS</relationship>
<concept>
<value>NUM00060</value>
<scheme>
<designator>FOO</designator>
</scheme>
<meaning>Vector (X)</meaning>
</concept>
<value>6.1035156E-5</value>
<unit>
<value>XYZ</value>
<scheme>
<designator>UCUM</designator>
</scheme>
<meaning>Arbitrary Unit</meaning>
</unit>
</num>
The file dsr2xml.xsd rely on the use of xsd:decimal which restricts:
The following values are invalid: 1 234.456 (spaces are forbidden),
1234.456E+2 (scientific notation—E+2—is forbidden), + 1234.456 (spaces
are forbidden), or +1,234.456 (delimiters between thousands are
forbidden).
ref:
http://books.xmlschemata.org/relaxng/ch19-77057.html
Reference for NUM:
http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.18.html#table_C.18.1-1
Reference for VR:DS:
http://dicom.nema.org/medical/dicom/current/output/chtml/part05/sect_6.2.html#para_15754884-9ca2-4b12-9368-d66f32bc8ce1
More information about the Debian-med-packaging
mailing list