Hi,

    I am using apache XMLdsig(1.4.2) to canonicalize XML file.

    The W3C Recommendation "Canonical XML" said that "Attribute
values are normalized, as if by a validating processor".

    And paragraph 3.3.3 Attribute-Value Normalization of XML1.1
Recommendation said that "If the attribute type is not CDATA,
then the XML processor MUST further process the normalized
attribute value by discarding any leading and trailing space (#x20)
characters, and by replacing sequences of space (#x20) characters
by a single space (#x20) character".

    When inputing a XML segment containing an attribute (normal,
not specified CDATA) like
    ...
    <a attr="   abc               abc   ">
    ...
the canonicalized output is still
    ...
    <a attr="   abc               abc   ">
    ...
where leading and trailing spaces were not removed and sequences
of space between value "abc"s were not replaced with a single space.

Could anyone tell me why?
Thank you very much.

______________________________________________________________________________________________
nolen

Reply via email to