W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > April to June 2002

Re: Gregor's EXC-C14N interop samples (WAS:RE: Moving exc-c14n forward: your response is needed!)

From: merlin <merlin@baltimore.ie>
Date: Thu, 18 Apr 2002 18:34:06 +0100
To: "Gregor Karlinger" <gregor.karlinger@iaik.at>
Cc: reagle@w3.org, "'TAMURA Kent'" <kent@trl.ibm.co.jp>, "'Ari Kermaier'" <arik@phaos.com>, "'Aleksey Sanin'" <aleksey@aleksey.com>, w3c-ietf-xmldsig@w3.org
Message-Id: <20020418173406.1427043BEA@yog-sothoth.ie.baltimore.com>
Gregor, you are absolutely right. I'm not sure the spec
actually intended it, but it sure says it. So, I agree
with all your samples and attached is a corresponding
signature over them.

Merlin

r/gregor.karlinger@iaik.at/2002.04.18/13:03:32
>Merlin,
>
>[...]
>> 3. I've tried Gregor's examples and, with one exception 
>> (example 4, regular c14n, GrandChild, xml:fool should not be 
>> there?), I think everything works.
>[...]
>
>I guess that you mean example 1 since this is the only one
>bearing an xml:fool attribute.
>
>According to the second paragraph of [1], section 2.4 I think
>the appearance of xml:fool as attribute of element GrandChild
>is correct:  
>
>  The processing of an element node E MUST be modified
>  slightly when an XPath node-set is given as input and the
>  element's parent is omitted from the node-set. The method
>  for processing the attribute axis of an element E in the
>  node-set is enhanced. All element nodes along E's ancestor
>  axis are examined for nearest occurrences of attributes in
>  the xml namespace, such as xml:lang and xml:space (whether
>  or not they are in the node-set).
>
>For "GrandChild", this results in the list 
>  - xml:foo (barbarossa)
>  - xml:lang (ge)
>  - xml:fool (barbar)
>  - xml:space (default)
>
>  From this list of
>  attributes, remove any that are in E's attribute axis
>  (whether or not they are in the node-set).
>
>After this step, the following list remains:
>  - xml:foo (barbarossa)
>  - xml:lang (ge)
>  - xml:fool (barbar)
>
>  Then,
>  lexicographically merge this attribute list with the nodes
>  of E's attribute axis that are in the node-set. 
>
>This step results in
>  - xml:foo (barbarossa)
>  - xml:lang (ge)
>  - xml:fool (barbar)
>  - xml:space (preserve)
>
>  The result
>  of visiting the attribute axis is computed by processing the
>  attribute nodes in this merged attribute list.
>
>Am I missing something here?
>
>/Gregor
>
>--
>[1] http://www.w3.org/TR/2001/REC-xml-c14n-20010315.html 
>
>


-----------------------------------------------------------------------------
The information contained in this message is confidential and is intended
for the addressee(s) only.  If you have received this message in error or
there are any problems please notify the originator immediately.  The 
unauthorised use, disclosure, copying or alteration of this message is 
strictly forbidden. Baltimore Technologies plc will not be liable for
direct, special, indirect or consequential damages arising from alteration
of the contents of this message by a third party or as a result of any 
virus being passed on.

This footnote confirms that this email message has been swept for Content
Security threats, including computer viruses.
http://www.baltimore.com



Received on Thursday, 18 April 2002 13:34:24 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.29 : Thursday, 13 January 2005 12:10:15 GMT