RE: Question: Base64 Transform Nodeset Input

Hi Christian,

The inserted <comment> element (which is not an XML comment, but rather
an XML element like any other) would cause a problem for base-64
decoding.  The behavior to mimic is XPath string(), which  concatenates
all descendant text nodes.

John Boyer
Senior Product Architect, Software Development
Internet Commerce System (ICS) Team
PureEdge Solutions Inc. 
Trusted Digital Relationships
v: 250-708-8047  f: 250-708-8010
1-888-517-2675   http://www.PureEdge.com <http://www.pureedge.com/>  	
 	


-----Original Message-----
From: Christian Geuer-Pollmann
[mailto:geuer-pollmann@nue.et-inf.uni-siegen.de]
Sent: Tuesday, July 31, 2001 5:55 AM
To: w3c-ietf-xmldsig@w3.org
Subject: Question: Base64 Transform Nodeset Input


What does section "6.6.2 Base64" mean whan it states:

"If an XPath node-set (or sufficiently functional alternative) is given
as 
input, then it is converted to an octet stream by performing operations 
logically equivalent to 1) applying an XPath transform with expression 
self::text(), then 2) taking the string-value of the node-set."

Is the following fragment valid input which decodes to "The URI of the 
transform is http://www.w3.org/2000/09/xmldsig#base64"

<BASE64>
VGhlIFVSSSBvZiB0aGUgdHJhbn<comment>Inserting this comment should not
change 
anything for processing</comment>
Nmb3JtIGlzIGh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1s
ZHNpZyNiYXNlNjQ=
</BASE64>


Christian

Received on Tuesday, 31 July 2001 13:17:46 UTC