- From: John Boyer <jboyer@PureEdge.com>
- Date: Wed, 11 Oct 2000 09:06:44 -0700
- To: "merlin" <merlin@baltimore.ie>
- Cc: "XML DSig" <w3c-ietf-xmldsig@w3.org>
Hi Merlin, Oh! Did it again didn't I. Yes we did make that change. As you and Petteri have asserted, the correct output should be what is shown less the xmlns:w3c in e3. So the spec will change from [suggested c14n] <e1 xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org"><e3 xmlns="" xmlns:w3c="http://www.w3.org" id="E3" xml:space="preserve"></e3></e1> to [correct c14n from you and Petteri] <e1 xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org"><e3 xmlns="" id="E3" xml:space="preserve"></e3></e1> Thanks, John Boyer Development Team Leader, Distributed Processing and XML PureEdge Solutions Inc. Creating Binding E-Commerce v: 250-479-8334, ext. 143 f: 250-479-3772 1-888-517-2675 http://www.PureEdge.com <http://www.pureedge.com/> -----Original Message----- From: w3c-ietf-xmldsig-request@w3.org [mailto:w3c-ietf-xmldsig-request@w3.org]On Behalf Of merlin Sent: Wednesday, October 11, 2000 8:50 AM To: John Boyer Cc: XML DSig Subject: Re: Tentative signature over C14N examples Hi, It is present in the node set, yes, but is it not omitted by C14N? http://www.w3.org/TR/2000/WD-xml-c14n-20000907#2.3 A namespace node N is ignored if the nearest ancestor element of the node's parent element that is in the node-set has a namespace node in the node-set with the same local name and value as N. Merlin r/jboyer@PureEdge.com/2000.10.11/08:45:20 >Hi Merlin, > >No, a namespace node is not omitted if the element's parent contains the >same namespace declaration. Please see [1] > >[1] http://www.w3.org/TR/xpath#namespace-nodes > >which says, > >"This means that an element will have a namespace node: > >for every attribute on the element whose name starts with xmlns:; > >for every attribute on an ancestor element whose name starts xmlns: unless >the element itself or a nearer ancestor redeclares the prefix; > >for an xmlns attribute, if the element or some ancestor has an xmlns >attribute, and the value of the xmlns attribute for the nearest such element >is non-empty >" > >Thanks, >John Boyer >PureEdge Solutions Inc. > >-----Original Message----- >From: merlin@baltimore.ie [mailto:merlin@baltimore.ie] >Sent: Wednesday, October 11, 2000 2:13 AM >To: John Boyer >Cc: XML DSig >Subject: Re: Tentative signature over C14N examples > > > >Hi, > >r/jboyer@PureEdge.com/2000.10.10/16:19:06 >><merlin> >>The C14N of e3 should ?not? have xmlns:w3c. >></merlin> >> >><john> >>Actually, it should have the w3c namespace. Each node receives namespace >>nodes for its entire namespace context, including those derived from its >>ancestors. >></john> > >But are they not emitted from C14N if they are in scope and set for >the nearest parent in the node set? > >Merlin > >[new xpath] > ><!-- Evaluate with declaration xmlns:ietf="http://www.ietf.org" --> > >(//. | //@* | //namespace::*) >[ > self::ietf:e1 or (parent::ietf:e1 and not(self::text() or self::e2)) > or > count(id("E3")|ancestor-or-self::node()) = >count(ancestor-or-self::node()) >] > >[document] > ><!DOCTYPE doc [ ><!ATTLIST e2 xml:space (default|preserve) 'preserve'> ><!ATTLIST e3 id ID #IMPLIED> >]> ><doc xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org"> > <e1> > <e2 xmlns=""> > <e3 id="E3"/> > </e2> > </e1> ></doc> > >[suggested c14n] > ><e1 xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org"><e3 xmlns="" >xmlns:w3c="http://www.w3.org" id="E3" xml:space="preserve"></e3></e1> > >[my c14n] > ><e1 xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org"><e3 xmlns="" >id="E3" xml:space="preserve"></e3></e1> >
Received on Wednesday, 11 October 2000 12:06:47 UTC