where X is a node-set, e is an element node with the type
xenc:EncryptedData
in X, and C is a parsing context of
X. Y is a node-set obtained by the following steps:
(In decryptXML(), all of the steps except the actual decryption are necessary because XPath does not permit one to remove and then replace a node. Consequently, we must serialize (1), wrap (2), reparse (4), and trim the node set (5).)
This appendix specifies the process for wrapping text, which is performed in decryptXML() (section 2.1.1). The process is a part of the process proposed by Richard Tobin in [Tobin] originally for constructing the infoset [XML-Infoset] of an external entity.
The process consists of the following two steps:
1.0
"
is inserted at the start of the text.
<dummy>
" at the start and
"</dummy>
" at the end.