[XML-SIG] XML and Zope
A.M. Kuchling
akuchlin@cnri.reston.va.us
Sun, 6 Dec 1998 17:05:23 -0500
As part of experimenting with Zope, I wanted to create a new tag under
DocumentTemplate, and chose to create one that formatted some XML; I
re-used my quotation formatting code, which made the job pretty
trivial. It wasn't too hard to do, and you can see some notes on it
at http://starship.skyport.net/crew/amk/zope/new-tag.html .
As an example, in a DTML document I can now put:
<!--#quotation-->
<quotation>
The days come and go... <source>Ralph Waldo Emerson</source>
</quotation>
<!--#/quotation-->
The tag will convert the fragment of XML it contains into HTML; more
realistically, the content would come from a database query or some
other source, and be present as a variable, something like:
<!--#quotation-->
<!--#var text-->
<!--#/quotation-->
This is a very simple example, of course. What could we do that would
be more general and more useful? An XSL styler (think of it: <!--#xsl
stylesheet="mine.xsl"--> ...) would be an obvious prospect, but would
also be a sizable job. Is there something smaller that would be
easier to implement, but still useful for someone?
--
A.M. Kuchling http://starship.skyport.net/crew/amk/
Barney turned his little squinty blue eyes on me. "We go to the garrick now
and become warbs," he said. "The hell we do!" I thought to myself quickly.
-- James Thurber, "The Black Magic of Barney Haller", in _The Thurber
Carnival_