From: Ray L. <ra...@es...> - 2002-11-25 20:14:31
|
Hi, Just wondering if anybody has begun working on an DocUtils-Xml -> Xsl to multi-target ( Html w/Css | Html no CSS | PDF ) transformation project yet. I've spent the last few months working on just such a thing, but my initial documents are my own grammar of Xml, and well ... after much working with it I've definitely come to the decision that while great for transformation, and computerized transformations it sucks to have to write so many < blah blah > just to get a basic webpage up. In comes DocUtils, and it's ability to create an Xml representation of reST. So I started reading the code on Sunday afternoon ( yesterday ), and have decided I *really* want to start using reST, as my standard static content creation language. Non-static stuff, might move to generate reST, but I've already built it to generate my Xml grammar so I really don't see the need at this time. Maybe if somebody creates a better presentation layer than mine I'll move it, but for now I think mines better than most out there. So the question is, has anybody started to work on any Xsl for DocUtils-XML? If they have can they share what they've worked on? I've looked in the sandbox but have found nothing ... maybe I'm looking in the wrong place? Anyways thanks for your time. Ray PS : Sorry for the cross post, but I thought it would be easier if I sent this out as widely as possible, and I *know* that sometimes people in dev are not in users, and vice-versa. |
From: David G. <go...@py...> - 2002-11-26 01:00:39
|
Ray Leyva wrote: > Just wondering if anybody has begun working on an DocUtils-Xml -> Xsl to > multi-target ( Html w/Css | Html no CSS | PDF ) transformation project > yet. Not as such, no. > So the question is, has anybody started to work on any Xsl for > DocUtils-XML? If they have can they share what they've worked on? I've > looked in the sandbox but have found nothing ... maybe I'm looking in > the wrong place? Back in April I merged the former reStructuredText and DPS projects into Docutils, and some of the old sandbox projects got left behind. Several XSL examples were there: * http://cvs.sf.net/cgi-bin/viewcvs.cgi/structuredtext/sandbox/alanj (Alan Jaffray) * http://cvs.sf.net/cgi-bin/viewcvs.cgi/structuredtext/sandbox/paulw (Paul Wright) * http://cvs.sf.net/cgi-bin/viewcvs.cgi/structuredtext/sandbox/rtxt2html (Remi Bertholet) They haven't been updated for some time, but they may help you get started. If you can, please contribute your results back to Docutils! -- 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/ |
From: Ray L. <ra...@es...> - 2002-11-26 15:39:54
|
I'd be more than happy to contribute. Right now though it requires libxml2, libxslt and their respective python bindings for this to work. I don't know if you're interested in something like that. Actually I can contribute the xsl stylesheets I'll be generating right from the start. A few questions: 1) The docutils-xml.py has some none functioning commandline options, is that known? I can document if it hasn't already. 2) Can there be a command line option to remove the <!DOCTYPE ... directive from the XML file created by docutils xml? I know it's a minidom, but I don't understand the cmdline classes well enought to add this option yet. The reason I want to remove it is for offline processing with libxml2 ... it's a validating parser, and when I go to transform the docutils-xml file it first tries to validate. That's no issue when connected, but when offline it can get a bit annoying. 3) Is there a single test document that uses everything in rst ( section indentation, tables, etc ... )? Thanks for your feedback, and I'll definitely be contributing the Xsl stylesheets. I've got one that works throught he sections / title / paragraphs. I'm trying to work out the rest as I go along. That's why a good sample that uses *everything* would be great. Ray |