<feed xmlns="http://www.w3.org/2005/Atom" xmlns:foaf="http://xmlns.com/foaf/0.1/"><title>norman.walsh.name: Comments on /2005/04/19/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2005/04/19/xslt20"/><id>http://norman.walsh.name/2005/04/19/xslt20/comments.atom</id><updated>2012-02-13T04:26:25.224532Z</updated><entry><title>Comment 1 on /2005/04/19/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2005/04/19/xslt20#comment0001"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0001</id><published>2005-05-20T12:23:54Z</published><updated>2005-05-20T12:23:54Z</updated><author><name>Ben Rogers</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">This cleans up the only issue I see on the stylesheets I've loaded thus far.  Finding this page this morning really made my day.  Thanks!

<code></code><pre>
      <code>
--- xslt20.rnc.orig     2005-05-20 08:14:57.000000000 -0400
+++ xslt20.rnc  2005-05-20 08:15:02.000000000 -0400
@@ -180,11 +180,11 @@
 apply-templates.element =
    element apply-templates {
       extension.atts,
       global.atts,
       attribute select { expression.datatype }?,
-      attribute mode { "#all" | "#default" | qname.datatype }?,
+      attribute mode { "#current" | "#default" | qname.datatype }?,
       (sort.element | with-param.element)*
    }
 
 attribute.element =
    element attribute {
</code>
    </pre><code></code></div></content></entry><entry><title>Comment 2 on /2005/04/19/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2005/04/19/xslt20#comment0002"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0002</id><published>2006-01-16T11:31:15Z</published><updated>2006-01-16T11:31:15Z</updated><author><name>Florent Georges</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>Thanks for this schema.  It saves me a lot of typing when used in conjunction with nXML ;-)
</p>
    <p>
--drkm</p>
  </div></content></entry><entry><title>Comment 3 on /2005/04/19/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2005/04/19/xslt20#comment0003"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0003</id><published>2006-06-26T22:57:32Z</published><updated>2006-06-26T22:57:32Z</updated><author><name>David Carlisle</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>Norm,
</p>
    <p>
xsl:namespace's name attribute is a possibly empty AVT but typed as
      attribute name { xsd:NCName },
I think it should be avt.datatype
</p>
    <p>
the mode attribute can take a white space separated list of modes but is typed as
attribute mode { "#all" | "#default" | qname.datatype }?
I think the last clause should be qnames__s__.datatype
</p>
    <p>
David</p>
  </div></content></entry><entry><title>Comment 4 on /2005/04/19/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2005/04/19/xslt20#comment0004"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0004</id><published>2006-07-10T23:10:18Z</published><updated>2006-07-10T23:10:18Z</updated><author><name>David Carlisle</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">My suggested change was not enough, does not validate
<br/>
&lt;xsl:template mode="#default a" match="/"&gt;
<br/>
I now suggest
<br/>
mode.datatype = list { "#all" | (xsd:NCName | "#default")+ }
<br/>
(which is same as exclude.prefixes.datatype except with a + not a *)

together with

<pre>
template.element =
   element template {
      extension.atts,
      global.atts,
      (attribute match { pattern.datatype }
       &amp; attribute mode { mode.datatype}?)?,
      attribute name { qname.datatype }?,
      attribute priority { number.datatype }?,
      attribute as { sequence.datatype }?,
      (param.element*, sequence.constructor)
   }
</pre></div></content></entry><entry><title>Comment 5 on /2005/04/19/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2005/04/19/xslt20#comment0005"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0005</id><published>2006-07-11T09:31:35Z</published><updated>2006-07-11T09:31:35Z</updated><author><name>David Carlisle</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">I now suggest<br/>
mode.datatype = list { "#all" | (xsd:NCName | "#default")+ }<br/>
(which is same as exclude.prefixes.datatype except with a + not a *)

<p>of course the trouble with cutting and pasting things is that you tend to cut the wrong thing. (It would be so much better if i could kill and yank instead:-)

</p><p>unlike exclude.prefixes.datatype  modes can be QNames not just NCNames so
xsd:NCName above needs to be  xsd:QName or equivalently qname.datatype

</p><p>PS any chance that you could see comments when writing a comment: it would make it a bit easier when replying to comments</p></div></content></entry><entry><title>Comment 6 on /2005/04/19/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2005/04/19/xslt20#comment0006"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0006</id><published>2006-07-12T13:08:47Z</published><updated>2006-07-12T13:08:47Z</updated><author><name>Norman Walsh</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>David: yes, essay comments are now displayed on the essay that you're commenting on.</p>
  </div></content></entry></feed>

