You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Giacomo Pati <pa...@yahoo.com> on 2000/07/07 13:11:53 UTC
Sitemap generation
For all of you who are intrested to know what I recently checked into CVS.
The main part is a stylesheet which transforms the sitemap definitions into a java class.
Everybody who wants to see how elaborated it is can use a script like the following from the to of
the tree to generate the java source and compare it to the actual sitemap working draft (windows
users have to change file and path separators as necessairy):
CLASSPATH=./lib/xerces_1_1_2.jar:./lib/xalan_1_0_1.jar:./lib/jstyle.jar
java org.apache.xalan.xslt.Process \
-in xdocs/drafts/sitemap-working-draft.xmap \
-xsl src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl | \
java jstyle.JSFormatter | \
java jstyle.JSBeautifier >sitemap.java
It does not compile yet because there are still many missing pieces but you can see the layout of
the generated class. I will appreciate any comments, suggestions to improvment it.
Giacomo
=====
--
PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen Web: http://www.pwr.ch
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/