W3C home > Mailing lists > Public > public-xmlsec-maintwg@w3.org > August 2007

C14N 1.1 Test Cases questions

From: Sean Mullan <Sean.Mullan@Sun.COM>
Date: Wed, 15 Aug 2007 14:30:00 -0400
To: XMLSec <public-xmlsec-maintwg@w3.org>
Message-id: <46C34628.5050509@sun.com>

I've started to generate test signatures for Juan Carlos' test cases
[1], and I have a question about C14N 1.1. For the first test case in
section 3.2.1, I believe the canonicalized result should be:

<ietf:e1 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org"
      <ietf:e11 xml:lang="EN">
         <ietf:e111 xml:lang="EN"></ietf:e111>
      <ietf:e12 at="2" xml:lang="EN">
         <ietf:e121 xml:lang="EN"></ietf:e121>

Is this correct? Is the xml:lang attribute inherited and copied to all
children elements in the node-set? That seems to be what the 2nd and 3rd
paragraphs of section 2.4 of the draft [2] documents, but lack of
examples is making me question this. I'm also a little confused because
I found some old interop tests (although they were C14N 1.0) that
treated xml:space and xml:lang like namespace nodes (i.e. they are
ignored if nearest ancestor has same attribute with same value).
Furthermore, it seems to me that they should be treated like namespace
nodes, as it would eliminate the redundant redeclarations above ...

What am I missing here?


[1] http://www.w3.org/2007/xmlsec/interop/xmlsig-interop-doc/testcases.html
Received on Wednesday, 15 August 2007 18:30:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:58:42 UTC