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

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