W3C

Disposition of comments for the XML Security Working Group

Single page view

In the table below, red is in the WG decision column indicates that the Working Group didn't agree with the comment, green indicates that a it agreed with it, and yellow reflects an in-between situation.

In the "Commentor reply" column, red indicates the commenter objected to the WG resolution, green indicates approval, and yellow means the commenter didn't respond to the request for feedback.

CommentorCommentWorking Group decisionCommentor reply
LC-2486 Pratik Datta <pratik.datta@oracle.com> (archived comment)
For these following three XML documents 1, 2, and 3 here is what I think they should canonicalize to with prefixRewrite according to the current spec - 1a, 2a and 3a. But I have also put an alternative for each - 1b, 2b and 3b.



Example 1: with namespace redefinition



<a:foo xmlns:a="http://a1">

<a:bar xmlns:a="http://a2"/>

</a:foo>



In the above example at first prefix "a" is defined to namespace http://a1 and then redefined to http://a2



With prefix rewriting should prefix "a" be rewritten to two different namespaces ns0 and ns1? Or should it be one namespace ns0 with redefinition. I.e. should it be



1a)

<ns0:foo xmlns:ns0="http://a1" >

<ns1:bar xmlns:ns1="http://a2"/>

</ns0:foo>



Or should it be



1b)

<ns0:foo xmlns:ns0="http://a1" >

<ns0:bar xmlns:ns0="http://a2"/>

</ns0:foo>



I think the spec says it should be 1a)







Example 2: with two prefixes defining the same namespace

<a:foo xmlns:a="http://a1">

<b:bar xmlns:b="http://a1"/>

</a:foo>



In this example both "a" and "b" are defined to the same namespace http://a1



So should they be rewritten to two different prefixes or to the same prefix?



I.e. should it be canonicalized to

2a)

<ns0:foo xmlns:ns0="http://a1">

<ns1:bar xmlns:ns1="http://a1"/>

</ns0:foo>



Or should it be

2b)

<ns0:foo xmlns:ns0="http://a1">

<ns0:bar/>

</ns0:foo>



Again I think the spec says it should be 2a). But maybe 2b) makes more sense, i.e. should we say that each URI should be mapped to one prefix?





Example 3: With prefixes being pushed down

<a:foo xmlns:a="http://a1" xmlns:b="http://a2" >

<b:bar>

<b:bar>

</a:foo>



Should each b get mapped to different prefixes? I.e. Should it be



3a)

<ns0:foo xmlns:ns0="http://a1" >

<ns1:bar xmlns:ns1="http://a2" >

<ns2:bar xmlns:ns2="http://a2" >

</ns0:foo>



Or should it be

3b)

<ns0:foo xmlns:ns0="http://a1" >

<ns1:bar xmlns:ns1="http://a2" >

<ns1:bar xmlns:ns1="http://a2" >

</ns0:foo>





Again according to the spec , it should be 3a)



I am thinking that we should change the definition of prefixRewrite so that we go by URI and not by prefix. i.e. each visibility utilized prefix gets mapped to a new prefix, so that there is a 1:1 mapping between URIs and new prefixes, but not a 1:1 mapping between original prefixes and new prefixes. With this definition we would get 1a), 2b and 3b) which I think makes more sense.





Pratik
http://lists.w3.org/Archives/Public/public-xmlsec/2011Jun/0002.html

Changes for prefix rewrite
- Added new section 2.5.2 Namespace Prefix Rewriting
- Modified section 2.5.3 , Removed Step 1, and added a new Step 3 for prefix rewriting
- Changed example 2.5.4.2, earlier the wsu prefix would map to n1, and then n2. Now it maps to n1 only
yes
LC-2484 Pratik Datta <pratik.datta@oracle.com> (archived comment)
In C14N 2.0, the TrimTextNodes parameter removes leading and trailing whitespace, but we haven't precisely defined what whitespace is.



I propose that we define it the same that the XML spec defines it, which is space character, carriage return, line feed or tab.



Here is the excerpt from XML specification http://www.w3.org/TR/xml/#NT-S



----------------------------------------------------------------

S (white space) consists of one or more space (#x20) characters, carriage returns, line feeds, or tabs.



White Space

[3] S ::= (#x20 | #x9 | #xD | #xA)+



Note:



The presence of #xD in the above production is maintained purely for backward compatibility with the First Edition. As explained in 2.11 End-of-Line Handling, all #xD characters literally present in an XML document are either removed or replaced by #xA characters before any other processing is done. The only way to get a #xD character to match this production is to use a character reference in an entity value literal.

-----------------------------------------------------------



Pratik
http://lists.w3.org/Archives/Public/public-xmlsec/2011Jun/0002.html

In Section 2.3, added this line into "Text Nodes"
- Whitespace consists of space (#x20) characters, carriage returns, line feeds, or tabs.

reference to XML 1.0 also added to this text
yes

Developed and maintained by Dominique Hazaël-Massieux (dom@w3.org).
$Id: index.html,v 1.1 2017/08/11 06:45:17 dom Exp $
Please send bug reports and request for enhancements to w3t-sys.org