- From: Pratik Datta <pratik.datta@oracle.com>
- Date: Sat, 7 Aug 2010 17:46:12 -0700 (PDT)
- To: Scott Cantor <cantor.2@osu.edu>, Frederick.Hirsch@nokia.com
- Cc: public-xmlsec@w3.org
I have added the QNameAware option into the document into the document. http://www.w3.org/2008/xmlsec/Drafts/c14n-20/Overview.html (August 7th version). One thing though the QNameAware parameter is very verbose. I.e. instead of <QNameAware>xsi:type, foo:bar<QNameAware> it will be something like this <QNameAware> <QualifiedAttr Name="type" NS="http://www.w3.org/2001/XMLSchema-instance"/> <Element Name="bar" NS="http://tempuri"/> </QNameAware> However I can't think of any compact notation. Pratik -----Original Message----- From: Scott Cantor [mailto:cantor.2@osu.edu] Sent: Thursday, July 22, 2010 12:36 PM To: Frederick.Hirsch@nokia.com Cc: public-xmlsec@w3.org Subject: RE: ACTION-549: Proposal for QName handling in C14N 2.0 > > In section 2.3, the text on Text Nodes would be modified by adding: > > > > "If the prefix rewriting parameter is set, and if the parent element node is > > among those enumerated for the qnameAware option, then the QName or CURIE > > value of the attribute is rewritten with the new prefix." > > Should "value of the attribute is rewritten with the new prefix." be revised > to say: > > "value of any QName text content listed in the enumerated qnameAware > option is rewritten with the new prefix." Sorry, cut and paste error. It should be: "If the prefix rewriting parameter is set, and if the parent element node is among those enumerated for the qnameAware option, then the QName or CURIE value of the text node is rewritten with the new prefix." > (2) Examples of the qnameAware option would be helpful, especially in the > text node case. Sure. What I couldn't do here was show examples with XML syntax for the option itself, because the XML syntax is left to XML Signature, but we can certainly express it verbally in an example or two. > If this approach were used for example 2.5.3 ( > http://www.w3.org/2008/xmlsec/Drafts/c14n-20/#sec-ExcCanonicalization- > Example ) > > then would the qnameAware option contain the value "wsu:Id"? No, wsu:Id isn't QName-valued. > if a:b text within the element foo:bar were to be processed, would > qnameAware option contain "foo:bar, a: b"? No. The thing you're identifying is the element, not the value of the element. You would only enumerate foo:bar. -- Scott
Received on Sunday, 8 August 2010 00:47:53 UTC