> However, it is currently the best tool that we have today to generate
> documentation and websites. It kicks the shit out of Stylebook and Ant's
> <style> task. So, unless you step up and create something
> better/faster/cheaper/easier, I am not going to consider your -1 as being
> valid.

Well, I have just spent some time doing this. I'm sure there are some
optimizations people will point out :) but I wonder what kind of turnaround
time you can do with Anakia given the same task. Anyway here is a summary:
-- I have grabbed some of the xalan site's xml and converted that to docbook
---- I only grabbed about 5 pages. Those that I did not grab will show as
blank pages on the site
---- any content in the same format as apache-xalan xml can use this
(convert.xsl) XSLT can transform it into docbook.
-- I have built about 70% of the XSL (site is working just need to tweak it
and I don't know what the design is or if you want some design options).
Still need:
---- a few things I just don't know about apache behind the scenes
(resource-ref, etc)
---- to cover all tag possibilities
---------------------
You can grab a WAR file here:
http://www.koberg.com/xalanj/xalanj.war
-- there is nothing being dynamically generated but it could be.
-- all xml and xsl is locked up behind WEB-INF
You can check out the html result (to this point) here:
http://www.koberg.com/xalanj/
to run it you will need xalan.jar, xerces.jar and bsf.jar in the classpath.
-------------------
What you can do with it:
1. first check out the site-config.xml this is the central xml.
2. You can convert the apache xml to docbook. This should be pretty solid.
Please point out any errors or issues you see. At the command line in the
WEB-INF/styling directory:
java org.apache.xalan.xslt.Process -in site-config.xml -xsl convert.xsl -out
temp.txt
-- the out is just a list of files - the XSL will output the db_*.xml
converted files
3. You can convert the docbook xml to html:
java org.apache.xalan.xslt.Process -in site-config.xml -xsl
docbook2html.xsl -out temp.txt
-- this will deposit HTML files at the docroot.

going to bed...





---------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to