RE: content type decryption clarification?

--On Donnerstag, 17. Januar 2002 18:56 +0900 Takeshi Imamura 
<IMAMU@jp.ibm.com> wrote:

>>> If the first "plaintext" in the text means, as you say, a whole
> document,
>>> I can understand this case.  But the text should be changed to something
>>> like:
>>>
>>> Note: If the Type is "content", the document resulting from decryption
>>> will not be well-formed if (a) the original fragment was not well-formed
>>> (e.g., PCDATA by itself is not well-formed), and (b) the EncryptedData
>>> element was the root element of the document.)
>>
>> I never understand the (b) point. Why is it a problem if the
>> EncryptedData is the root of a Document? After decryption, the decrypted
>> content is placed into the document and replaces EncryptedData. If the
>> decrypted contents contain exactly one Element and no
>> non-whitespace-characted-data, it can be parsed (and replace the
>> original EncryptedData).
>
> Sorry, I mean if both (a) and (b) are true, the document will not be
> well-formed.  Does it make sense?

OK, now I understand. That's true. I read the 'and' before (b), but I 
didn't realize it as the logical AND ;-)

Christian

Received on Thursday, 17 January 2002 05:07:35 UTC