|
From: Bill B. <bb...@co...> - 2002-12-20 20:40:36
|
Is there a minimal writer example available? I want to write a minimal HTML writer that can produce non-stylesheet documents that are conformant to the O'Reilly devcenter article specification. This seems like a *really* easy writer to create and would make a very good example of how to write a minimal, relatively stupid, writer. I just have no freakin' clue how to get the basic writer up and running in a fashion to get to this point. The jump from pseudoxml to html2css1 is to large for me to efficiently figure out where I fall in between. Specifically, the requirements are as follows. --- - comply with XHTML; <br/> for break, close all tags, lower case, etc... <h2></h2>: Headline <h3></h3>: Subheading ul, li, ol: for unordered and ordered lists <p></p>: for all paragraphs Standard <a..> and <img..> for all hyperlinking and images, respectively. <pre> and <code> are used for examples and code. CODE should be 50 characters wide or less. Images no larger than 450 pixels wide. --- Obviously, if such a writer were to exist, a bunch of free publicity in the form of an O'Reilly article discussing authoring O'Reilly articles using DocUtils is a possibility... :-) thanks, b.bum |