W3C home > Mailing lists > Public > public-xmlsec@w3.org > June 2011

XML Signature 2.0 Last Call comment - correction to examples

From: <Frederick.Hirsch@nokia.com>
Date: Fri, 10 Jun 2011 19:41:50 +0000
To: <public-xmlsec@w3.org>
CC: <Frederick.Hirsch@nokia.com>
Message-ID: <0FCCFAEC-4DFC-4953-9AC2-8988FA66A9E6@nokia.com>
There is an error in the XML Signature 2.0 examples, the dsig2:Selection attribute which specifies the type is named "type" and it should be named "Algorithm" according to the schema ( see http://www.w3.org/TR/2011/WD-xmldsig-core2-20110421/#sec-Selection )

Proposal, change "type='" to "Algorithm=" in the following.

(a) In 2.1, http://www.w3.org/TR/2011/WD-xmldsig-core2-20110421/#sec-o-Simple-2.0

[s07a]        <dsig2:Selection type="http://www.w3.org/2010/xmldsig2#xml" xmlns:dsig2="http://www.w3.org/2010/xmldsig2#"
URI="http://www.w3.org/TR/2000/REC-xhtml1-20000126">

(b) In 2.2, http://www.w3.org/TR/2011/WD-xmldsig-core2-20110421/#sec-DetailedIdExample-2.0

[ i23 ]                 <dsig2:Selection type="http://www.w3.org/2010/xmldsig2#xml" URI="#MsgBody" />

(c) and in 2.3, http://www.w3.org/TR/2011/WD-xmldsig-core2-20110421/#sec-DetailedXPathExample-2.0

[ p24 ]                 <dsig2:Selection type="http://www.w3.org/2010/xmldsig2#xml" URI="">


regards, Frederick

Frederick Hirsch
Nokia


xs:element name="Selection" type="dsig2:SelectionType"/>
<xs:complexType name="dsig2:SelectionType">
   <xs:sequence>
<xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
   <xs:attribute name="URI" type="xs:anyURI" use="required"/>
<xs:attribute name="Algorithm" type="xs:anyURI" use="required"/>
</xs:complexType>
Received on Friday, 10 June 2011 19:42:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 10 June 2011 19:42:22 GMT