From: David G. <go...@py...> - 2002-12-17 03:03:20
|
I looked at the DeveloperWorks tutorial DTD (dwtut.dtd) and supporting docs. It seems quite straightforward: a custom set of structural elements wrapping an HTML core. It would require a few directives (like "example-column", "image-column", perhaps "xml-listing" etc.) and a mapping of document -> tutorial, top-level section -> section, next-level section -> panel. Ideally the Toot-O-Matic Writer component should check that no unsupported elements are present (lower-level sections, tables, etc.). It looks doable. You may want to subclass the writers/html4css1.py module, although your XML is so different that copy&paste may be easier. I'll be happy to answer any questions. -- David Goodger <go...@py...> Open-source projects: - Python Docutils: http://docutils.sourceforge.net/ (includes reStructuredText: http://docutils.sf.net/rst.html) - The Go Tools Project: http://gotools.sourceforge.net/ |