W3C home > Mailing lists > Public > xml-encryption@w3.org > July 2003

Re: a question regarding section "http://www.w3.org/TR/xmlenc-core/#sec-Serializing-XML"

From: Joseph Reagle <reagle@w3.org>
Date: Tue, 29 Jul 2003 09:31:48 -0400
To: "Ignatius Feng" <Ignatius.Feng@healthlink.net>
Cc: <xml-encryption@w3.org>
Message-Id: <200307290931.48286.reagle@w3.org>

On Monday 28 July 2003 19:51, Ignatius Feng wrote:
> it seems
> that the output of canonicalization of <Document
> xmlns="http://example.org/">
>  <ToBeEncrypted xmlns="" />
> </Document>
> should already include the xmlns="" as follows:
> <Document xmlns="http://example.org/">
>  <ToBeEncrypted xmlns=""><ToBeEncrypted>
> </Document>

Hi Ignatius, the tricky bit here is that it's *not* the Document element 
that is being canonicalized, because it is *not* the Document element being 
encrypted. Instead, it is the fragment ToBeEncrypted that is being 
encrypted and consequently isolated from its context and canonicalized. 
When you isolate ToBeEncrypted from its context the canonicalization will 
not emit the xmlns="" because as far as it's concerned, ToBeEncrypted  is 
the root element and there's no context to "over-ride".
Received on Tuesday, 29 July 2003 09:31:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:13:11 UTC