Le 05-07-07 à 14:12, Paul Hoffman a écrit :
Without. That is explicitly the default for <http://www.w3.org/TR/
2002/REC-xml-exc-c14n-20020718/>.
Where does it state that explicitly?
"Just as with [XML-C14N] one may use the "#WithComments" parameter
to include the serialization of XML comments." Meaning: if you
don't include #WithComment, you don't get comments.
Hmmmm. not sure.
[[[
4. Use in XML Security
Exclusive Canonicalization may be used as a Transform or
CanonicalizationMethod algorithm in XML Digital Signature [XML-DSig]
and XML Encryption [XML-Enc].
Identifier:
http://www.w3.org/2001/10/xml-exc-c14n#
http://www.w3.org/2001/10/xml-exc-c14n#WithComments
Just as with [XML-C14N] one may use the "#WithComments" parameter to
include the serialization of XML comments. This algorithm also takes
an optional explicit parameter of an empty InclusiveNamespaces
element with a PrefixList attribute. The value of this attribute,
which may be null, is a white space delimited list of namespace
prefixes, and where #default indicates the default namespace, to be
handled as per [XML-C14N]. The list is in NMTOKENS format (a white
space separated list).
]]] - http://www.w3.org/TR/2002/REC-xml-exc-c14n-20020718/#sec-Intro
I read
Just as with [XML-C14N] one may use the "#WithComments"
parameter to include the serialization of XML comments.
So it's a MAY, but it doesn't say that when the parameter is not here
that there's a MUST NOT include them.
Going a bit further, because it is said "Just as with [XML-C14N]". I
follow the link
[[[
The second parameter of input to the XML canonicalization method is a
boolean flag indicating whether or not comments should be included in
the canonical form output by the XML canonicalization method. If a
canonical form contains comments corresponding to the comment nodes
in the input node-set, the result is called canonical XML with
comments. Note that the XPath data model does not create comment
nodes for comments appearing within the document type declaration
(DTD). Implementations are REQUIRED to be capable of producing
canonical XML excluding all comments that may have appeared in the
input document or document subset. Support for canonical XML with
comments is RECOMMENDED.
]]] - http://www.w3.org/TR/2001/REC-xml-c14n-20010315#DataModel
ok, so it's not really a default feature/behaviour but it seems
something like a flag that you have to give.
--
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager
*** Be Strict To Be Cool ***