<feed xmlns="http://www.w3.org/2005/Atom" xmlns:foaf="http://xmlns.com/foaf/0.1/"><title>norman.walsh.name: Comments on /2010/05/12/calsns</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2010/05/12/calsns"/><id>http://norman.walsh.name/2010/05/12/calsns/comments.atom</id><updated>2012-02-13T06:31:45.292736Z</updated><entry><title>Comment 1 on /2010/05/12/calsns</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2010/05/12/calsns#comment0001"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0001</id><published>2010-05-12T13:44:28Z</published><updated>2010-05-12T13:44:28Z</updated><author><name>Sjoerd Visscher</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>The biggest advantage I see is that this gives an opportunity to standardize which subset of the original CALS table spec is supported. There doesn't seem to be an agreement there yet. The only standard subset is the Exchange subset, but I often see other subsets.</p>
  </div></content></entry><entry><title>Comment 2 on /2010/05/12/calsns</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2010/05/12/calsns#comment0002"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0002</id><published>2010-05-12T14:33:59Z</published><updated>2010-05-12T14:33:59Z</updated><author><name>Dan Brickley</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>Am I the only one who'd never heard of CALS tables before this?
</p>
    <p>
(But I did my googling...)
</p>
    <p>
Re namespaces - I'm in the "I want to believe" camp.
</p>
    <p>
How would this design compare to using/improving the existing XHTML markup for tables? Are these tables in the sense of presentation, or tables in a more SQL-ish sense, or most likely I suppose, a little of both.
</p>
    <p>
If they're at the data end, there's a growing pile of tech (D2RQ etc) for mapping tabular SQL data into RDF. Having a nice clean namespace for this stuff would probably help apply similar tricks to markup...</p>
  </div></content></entry><entry><title>Comment 3 on /2010/05/12/calsns</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2010/05/12/calsns#comment0003"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0003</id><published>2010-05-12T16:28:26Z</published><updated>2010-05-12T16:28:26Z</updated><author><name>John Cowan</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">The "nested grammars" section of the RELAX NG tutorial (13 in the XML-syntax tutorial, 14 in the compact-syntax tutorial) explains how to do "doughnut" schemas that are independent of what can go in the doughnut hole.  Here's the example schema:

<pre>cell.content = notAllowed
start =
  element table {
    element tr {
      element td { cell.content }+
    }+
  }</pre>

And here's the sample that includes it, overriding <code>cell.content</code>:

<pre>start =
  element doc {
    (element p { inline }
     | grammar {
         include "table.rnc" {
           cell.content = parent inline
         }
       })*
  }
inline =
  (text
   | element em { inline })*</pre></div></content></entry><entry><title>Comment 4 on /2010/05/12/calsns</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2010/05/12/calsns#comment0004"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0004</id><published>2010-05-13T08:52:18Z</published><updated>2010-05-13T08:52: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">
    <p>when reading your "What would be gained" list I couldn't help but think "That's what they said about xlink" so was somewhat amused to see at the end of the article that you admitted to having been "burned" before.
</p>
    <p>
'On the other hand, if we think MathML and SVG are going to be widely used, then authors will get used to islands of “other namespace” markup'
</p>
    <p>
They might, or they might vote with their feet and use html5 (or html5-style markup) where namespaces, well formedness and lots of other good things are brushed under the carpet.
</p>
    <p>
AT NAG the internal markup to an in-house DTD uses CALS tables and MathML extensively but we don't use any namespaces internally. When generating pdf (with 3b2 - now arbortext print publisher) we process the cals directly, and for (x)html the stylesheets add xhtml or mathml namespaces as required while generating the public files.</p>
  </div></content></entry><entry><title>Comment 5 on /2010/05/12/calsns</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2010/05/12/calsns#comment0005"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0005</id><published>2010-05-13T11:07:44Z</published><updated>2010-05-13T11:07:44Z</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 think the case is stronger for tables than links, but yeah, once bitten, twice shy. Perhaps all is already lost.</p>
  </div></content></entry><entry><title>Comment 6 on /2010/05/12/calsns</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2010/05/12/calsns#comment0006"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0006</id><published>2010-06-16T07:00:57Z</published><updated>2010-06-16T07:00:57Z</updated><author><name>Simon Pepping</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>I have always been a fan of namespaces. When I was working on the <a rel="nofollow" href="http://www.elsevier.com/wps/find/authorsview.authors/dtds_htm">Elsevier DTD</a> we included SOExt table into  in its own namespace. We even put entry back into our namespace because it had its own content model, differing from the SOExt entry content model (as you indicate above). Because we used a DTD, we used some namespace binding trickery to get the CALS elements in the 'cals' namespace and get entry into our namespace, all without a prefix. I admit that few people understood this. (I am no longer working with Elsevier.)</p>
  </div></content></entry><entry><title>Comment 7 on /2010/05/12/calsns</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2010/05/12/calsns#comment0007"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0007</id><published>2010-07-18T18:36:14Z</published><updated>2010-07-18T18:36:14Z</updated><author><name>Mike Maxwell</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>How would this affect RFE 2964576 ("disallow table in entry")?  I regret being the user who "pointed out that the table entry element permits table in the entry element."  (Regret, because I might have found that capability useful.)</p>
  </div></content></entry><entry><title>Comment 8 on /2010/05/12/calsns</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2010/05/12/calsns#comment0008"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0008</id><published>2010-07-20T14:04:33Z</published><updated>2010-07-20T14:04:33Z</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>Mike,
</p>
    <p>
I don't think it's related. The CALS semantics forbid tables inside tables, all this essay considers is whether or not the CALS elements should be in a namespace.
</p>
    <p>
As for the nesting issues, I think entrytbl or HTML tables are your only options. My guess is that nested tables are forbidden because circa-1980 formatters couldn't cope. Today they can, but short of revising CALS, I don't think we can do anything about it.
</p>
    <p>
(That said, you are of course free to extend DocBook and allow it if your processing system can cope.)</p>
  </div></content></entry></feed>

