I have been experimenting with including the single cell in documents that are born in authoring formats, specifically LaTeX and Docbook, with output as webpages or ebooks. I imagine my comments would apply equally well to ReST, but that is mostly just informed speculation.
In this setting, the setup interface would be much more flexible and easy to use if more configuration/initialization could happen in the <body> in the near vicinity of where the <div> holding the content is placed, rather than in the <head>. The problem is that you may want to place more than one cell on a page, and you may want to configure them differently (say one cell with editable source, and a second with an interact in a hidden editor), but you have to read the source of the whole page before you can create all the initialization in the head of the output. At a minimum, you do not even know how many cells to create until you finish reading the source for the page. So it feels like it almost becomes a two-pass operation, ala LaTeX references, though there may be an approach to the text processing involved that might alleviate this, though I have not figured out just what that approach might be, still being a bit of a novice with tools like XSLT. Would it be possible to put some sort of generic setup service in the head, and then let each cell "register" itself on-the-fly just prior to where it is used in the body? Or something like that? If the setup service was lightweight enough, then maybe there'd be no penalty to including it on a page even if it were not used. Thanks, Rob -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
