<feed xmlns="http://www.w3.org/2005/Atom" xmlns:foaf="http://xmlns.com/foaf/0.1/"><title>norman.walsh.name: Comments on /2005/09/14/xmlid</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2005/09/14/xmlid"/><id>http://norman.walsh.name/2005/09/14/xmlid/comments.atom</id><updated>2012-02-13T06:29:52.361909Z</updated><entry><title>Comment 1 on /2005/09/14/xmlid</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2005/09/14/xmlid#comment0001"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0001</id><published>2005-09-15T10:09:57Z</published><updated>2005-09-15T10:09:57Z</updated><author><name>Oleg Tkachenko</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>1b/2b sound reasonable to me.</p>
  </div></content></entry><entry><title>Comment 2 on /2005/09/14/xmlid</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2005/09/14/xmlid#comment0002"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0002</id><published>2005-09-15T10:29:58Z</published><updated>2005-09-15T10:29:58Z</updated><author><name>Rasmus Kaj</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>Yes, 1b/2b seems natural.  And xml:id should of course not be inherited. But how should xml:somethingnew be handled? Should there be a new version of the C14N specification each time a new attribute in the xml namespace is defined?
</p>
    <p>
(This seems to be another argument for an inclusive XML specification, where all attributes in the xml namespace, C14N, and some other stuff, is defined in the same specification.)</p>
  </div></content></entry><entry><title>Comment 3 on /2005/09/14/xmlid</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2005/09/14/xmlid#comment0003"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0003</id><published>2005-09-15T17:41:56Z</published><updated>2005-09-15T17:41:56Z</updated><author><name>Rich Salz</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>What does "fixup" mean -- can you provide an example or two?  I am concerned about adding URL/URI processing to a canonicalizer.  I note that no other imported "xml:" values are modified or otherwise fixed-up.
</p>
    <p>
Since xml:id will clearly not be imported, there's precedent to not import xml:base.  It seems that the cleanest way to update C14N is to remove the "magic import" clause for attributes not already mentioned (space and lang).
</p>
    <p>
How often is C14N used by itself, as opposed to feeding it into a digest mechanism?  How often is C14N used on an XML subset, by itself, as opposed to feeding it into a digest mechanism?  My guess is not very, and rarely. In that case, "fixing up" attribute values is of no use.</p>
  </div></content></entry><entry><title>Comment 4 on /2005/09/14/xmlid</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2005/09/14/xmlid#comment0004"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0004</id><published>2005-09-16T14:45:41Z</published><updated>2005-09-16T14:45:41Z</updated><author><name>Damian Cugley</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>I think the issue with xml:base is something like this:</p>
<pre>
      <code>&lt;foo xml:base="http://example.com/"&gt;
  &lt;bar xml:base="shoes/"&gt;
    &lt;baz href="socks"/&gt;
  &lt;/bar&gt;
&lt;/foo&gt;</code>
    </pre>
<p>
If I pull out the <code>baz</code> element, simple inheritance adds attribute <code>xml:base="shoes/"</code>, which is incomplete.  The effective XML-base value for the <code>baz</code> element is <code>http://example.com/shoes/</code>. 
</p>
<p>
I suspect this is a general problem with the xml-namespace attributes: they are often used to annotate a subtree of the XML document with some new trait whose inheritance rules the canonicalization recommendation cannot be expected to anticipate.  Tricky!
</p>
  </div></content></entry><entry><title>Comment 5 on /2005/09/14/xmlid</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2005/09/14/xmlid#comment0005"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0005</id><published>2005-09-26T16:28:34Z</published><updated>2005-09-26T16:28:34Z</updated><author><name>Stuart Williams</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>I think that the may be a few different patterns that could be applied to the canonicalisation of xml: namespaced attributes. Inherited or not is a pattern that's mentioned here. With respect to URI values there's also whether or not they should be 'fixed' up.
</p>
    <p>
A future rev to C14N could call out various attribut 'canonicalisation' patterns, grandfather existing attributes by stating which characteristics apply to which xml: attributes. It could also place an obligation on those creating new names in the xml: namespace to state which canonicalisation pattern applies to the new attribute. That at least avoids the C14N spec. maintenance problem (until a new pattern is required). However, it does not avoid the need to maintain implementations - particularly if a default pattern is stated for the treatment of 'unknown' attributes - and the new attribute requires non-default treatment.
</p>
    <p>
BTW: it also seems to me that describing the scope of the influence of a given attribute might be something that a schema could usefully do.</p>
  </div></content></entry></feed>

