Open jkowalleck opened 4 months ago
possible solution: modify the XML normalizers where needed, and call a to-be-written helper function that does the normalization.
solution as done in TS?JS https://github.com/CycloneDX/cyclonedx-javascript-library/pull/1116
CycloneDX uses http://www.w3.org/2001/XMLSchema - which defines
normalizedString
as follows:CycloneDX uses http://www.w3.org/2001/XMLSchema - which defines
token
as follows:therefore, on XML-normalization for
):
normalizedString
, the following chars must be replaced by space(\r
(#xD)\n
(#xA)\t
(#x9)Therefore, on XML-normalization for
token
, the following must aplpy:Affected are only fields that are defined as
normalizedString
respectivetoken
in XML spec! Other field MUST NOT be affected!