<feed xmlns="http://www.w3.org/2005/Atom" xmlns:foaf="http://xmlns.com/foaf/0.1/"><title>norman.walsh.name: Comments on /2004/07/25/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2004/07/25/xslt20"/><id>http://norman.walsh.name/2004/07/25/xslt20/comments.atom</id><updated>2012-02-13T04:36:26.52599Z</updated><entry><title>Comment 1 on /2004/07/25/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2004/07/25/xslt20#comment0001"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0001</id><published>2004-07-27T05:53:42Z</published><updated>2004-07-27T05:53:42Z</updated><author><name>Evan Lenz</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>Hi Norm,</p>
<p>I like the externalRef feature too. I actually would have liked to see an analogous feature in XSLT 2.0 (xsl:call-transform or some such). It would let you use existing stylesheets wholesale, without worry about conflicting modes (especially the default one), variable names, etc. Alas, that wasn't the only fight I lost ;-)</p>
<p>Evan</p>
  </div></content></entry><entry><title>Comment 2 on /2004/07/25/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2004/07/25/xslt20#comment0002"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0002</id><published>2004-07-27T15:20:43Z</published><updated>2004-07-27T15:20:43Z</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>Yes, that would have been nice. I bet there are a lot of nice things we could have done if we hadn't gotten tangled in the W3C XML Schema type system. And we could have finished in 2002, too! :-)</p>
  </div></content></entry><entry><title>Comment 3 on /2004/07/25/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2004/07/25/xslt20#comment0003"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0003</id><published>2004-07-31T08:45:01Z</published><updated>2004-07-31T08:45:01Z</updated><author><name>Tobi </name></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>Thanks for this schema! The "start = xslt10 | xslt20" trick is really cool.</p>
<p>"how do I get emacs to use the 2.0 grammar for 2.0 stylesheets and the 1.0 grammar for 1.0 stylesheets?"</p>
<p>While I don't have entry-help in Vim, I installed your schema so that I can validate XSLT 2.0 documents from within Vim (and from the shell).</p>
<p>I added an entry to my language list, now I get:</p>
<p>$ cat 2_0_simple.xslt</p>
<p>&amp;lt;html xsl:version="2.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns="http://www.w3.org/1999/xhtml"&amp;gt;</p>
<p>&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;Expense Report Summary&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;</p>
<p>&amp;lt;body&amp;gt;
    &amp;lt;p&amp;gt;Total Amount: &amp;lt;xsl:value-of select="expense-report/total"/&amp;gt;&amp;lt;/p&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;</p>
<p>$ xval 2_0_simple.xslt</p>
<p>[xval] validating 2_0_simple.xslt against</p>
<p>/home/tobi/bulk/xml/schemas/xslt/2_0/rng/xslt20.rnc</p>
<p>[xval] jing:</p>
<p>$ # changed the file</p>
<p>$ xval 2_0_simple.xslt</p>
<p>[...]</p>
<p>[xval] jing:</p>
<p>/home/tobi/data/run/xval/_tests/2_0_simple.xslt:8:68:</p>
<p>error: element "fvalue-of" from namespace 
"http://www.w3.org/1999/XSL/Transform" not allowed in this context</p>
<p>$</p>
<p>(it would be great if you could allow backtalkers to enter preformatted code, eg via HTML pre or some Wiki style markup)</p>
  </div></content></entry><entry><title>Comment 4 on /2004/07/25/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2004/07/25/xslt20#comment0004"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0004</id><published>2004-07-31T09:19:36Z</published><updated>2004-07-31T09:19:36Z</updated><author><name>Tobi </name></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>"how do I get emacs to use the 2.0 grammar for 2.0 stylesheets and the 1.0 grammar for 1.0 stylesheets?</p>
<p>The short answer is: there isn’t any way (it could be done, but not with any of the techniques provided by an unmodified nxml mode)."</p>
<p>Does that mean that</p>
<p>http://groups.yahoo.com/group/emacs-nxml-mode/message/259</p>
<p>can't be used to associate the XSLT 1.0 RNG/RNC with XSLT 1.0 documents and the XSLT 2.0 RNG/RNC with XSLT 2.0 documents?</p>
  </div></content></entry><entry><title>Comment 5 on /2004/07/25/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2004/07/25/xslt20#comment0005"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0005</id><published>2004-08-07T15:36:57Z</published><updated>2004-08-07T15:36:57Z</updated><author><name>Tobi </name></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>P.S.</p>
<p>My question was not rhetoric :)</p>
<p>I'd really be interested in an answer.</p>
<p>TIA</p>
  </div></content></entry><entry><title>Comment 6 on /2004/07/25/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2004/07/25/xslt20#comment0006"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0006</id><published>2004-08-08T05:11:53Z</published><updated>2004-08-08T05:11:53Z</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>I always have a hard time getting to the Yahoo Groups archives (I get infinite redirection), so I can't follow the link you posted, but I expect you're pointing to James' "locating rules" language.</p>
<p>As it stands today, you can't select a schema URI based on an attribute value on the root element (or even on the combination of namespace *and* the name of the root element).</p>
<p>That means there's no way for nxml-mode to tell the difference between XSLT 1.0 and XSLT 2.0.
But James and I have exchanged some email on the topic and I think there will be a new version that will be able to cope with the selection.</p>
  </div></content></entry><entry><title>Comment 7 on /2004/07/25/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2004/07/25/xslt20#comment0007"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0007</id><published>2004-08-08T07:49:16Z</published><updated>2004-08-08T07:49:16Z</updated><author><name>Tobi </name></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>Thanks for the reply!</p>
<p>Here's what I use:</p>
<p>http://www.pinkjuice.com/language_list/my_language_list.xml</p>
<p>Works great.</p>
  </div></content></entry><entry><title>Comment 8 on /2004/07/25/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2004/07/25/xslt20#comment0008"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0008</id><published>2004-12-08T22:05:37Z</published><updated>2004-12-08T22:05:37Z</updated><author><name>Marian</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>Is there a good debugger for XSLT 2.0?</p>
  </div></content></entry><entry><title>Comment 9 on /2004/07/25/xslt20</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2004/07/25/xslt20#comment0009"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0009</id><published>2004-12-23T18:04:22Z</published><updated>2004-12-23T18:04:22Z</updated><author><name>Sean</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>In my site-lisp\nxml-mode\schema directory I renamed James' original xslt.rnc to xslt10.rnc and installed Norm's xslt.rnc. I visited docbook.xsl and got the message, File mode specification error: (error "Reference not in a grammar at position 2 in c:/Program Files/emacs-21.3/site-lisp/nxml-mode/schema/xslt.rnc") in the echo area. The mode line indicates (nXML Valid). What am I doing wrong?</p>
  </div></content></entry></feed>

