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 05:14:50 UTC