- From: Frederick Hirsch <frederick.hirsch@nokia.com>
- Date: Tue, 1 May 2007 13:55:58 -0400
- To: XMLSec <public-xmlsec-maintwg@w3.org>
- Cc: Hirsch Frederick <frederick.hirsch@nokia.com>
I have four comments on the Canonical XML 1.1 last call draft [1]. 1) Add another example to section 3 showing handling of xml:id and xml:base for document subset, e.g.: --- 3.8 Document Subsets and XML attributes Input <!DOCTYPE doc [ <!ATTLIST e2 xml:space (default|preserve) 'preserve'> <!ATTLIST e3 id ID #IMPLIED> ]> <doc xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:base="http://www.example.com/something/else"> <e1> <e2 xmlns="" xml:id="abc" xml:base="../bar/"> <e3 id="E3" xml:base="foo"/> </e2> </e1> </doc> Document Subset Expression (same as 3.7) <!-- Evaluate with declaration xmlns:ietf="http://www.ietf.org" --> (//. | //@* | //namespace::*) [ self::ietf:e1 or (parent::ietf:e1 and not(self::text() or self::e2)) or count(id("E3")|ancestor-or-self::node()) = count(ancestor-or- self::node()) ] Canonical Form <e1 xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org"><e3 xmlns="" id="E3" xml:base="http://www.example.com/bar/foo" xml:space="preserve"></e3> </e1> Demonstrates: xml:id not inherited. simple inheritable XML attribute inherited (xml:space) xml:base fixup performed --- 2) Link to RFC 3986 [URI] reference from fifth paragraph and bullets in Section 2.4 [2] (minor editorial comment) 3) For clarity use same notation for X and E values, e.g. state in next to last paragraph in document subset section [2]: "In that case let Xm ... X1 be the values of the xml:base attributes on En...E1 (in order from outermost to innermost). The sequence of values is reduced to a single value by first combining Xm with Xm-1, then the result with Xm-2, and so on" instead of "In that case let X1 ... Xm be the values of the xml:base attributes on En...E1 (in order from outermost to innermost). The sequence of values is reduced to a single value by first combining X1 with X2, then the result with X3, and so on" 4) Modify first sentence in Abstract from "Canonical XML 1.1 is a revision to Canonical XML 1.0 to address issues raised while producing the xml:id specification." to "Canonical XML 1.1 is a revision to Canonical XML 1.0 to address issues related to inheritance of attributes in the XML namespace when canonicalizing document subsets, including the requirement not to inherit xml:id, and to treat xml:base URI path processing properly." --- regards, Frederick Frederick Hirsch Nokia [1] <http://www.w3.org/TR/xml-c14n11/> [2] <http://www.w3.org/TR/xml-c14n11/#DocSubsets>
Received on Tuesday, 1 May 2007 17:56:23 UTC