W3C home > Mailing lists > Public > public-xmlsec@w3.org > February 2009

[ACTION-201] Make concrete proposal on whitespace removal c14n for XMLDSIG 1.1 (draft2)

From: Konrad Lanz <Konrad.Lanz@iaik.tugraz.at>
Date: Tue, 03 Feb 2009 18:05:42 +0100
Message-ID: <49887966.4000904@iaik.tugraz.at>
To: public-xmlsec@w3.org Whitespace Removal in ds:SignedInfo

The element RemoveWhiteSpace is to provide a means to cause whitespace
removal irrespective of an XMLSchema on a SignedInfo level


<CanonicalizationMethod Algorithm="http://www.w3.org/2006/12/xml-c14n11">

The paramer RemoveWhiteSpace in the
http://www.w3.org/2009/xmldsig11# namespace, causes whitespace nodes to
be removed from the pre-canonicalization node-set.

Note (non-normative): This is equal to executing an XPath filter
step as below in the square brackets.

(//. | //@* | namespace::*)
[not(self::text()) or not(normalize-space(self::text())="")]

See Section to remove whitespace on the Reference level.

------ Whitespace Removal in data objects referred by Reference

This section provides a recommendation for removing whitespace if it is
insignificant (not to be confused with ignorable whitespace) to the
data objects. Pure whitespace nodes should be considered insignificant
by default on signature creation and reflected, by putting the following
Transform as the last transform before canonicalization


<Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
  <XPath>not(self::text()) or not(normalize-space(self::text())="" and

Received on Tuesday, 3 February 2009 17:06:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:55:10 UTC