[TriLUG] re: trilug web hosting worked for me!
Andrew C. Oliver
acoliver at apache.org
Mon Feb 4 20:44:50 EST 2002
> getting off-topic for a linux list, but what the hey, it's sunday.
just
> thought i'd mention that there are plenty of ways besides cocoon to
> transform xml files using xslt stylesheets into a variety of different
> output formats in this day and age. xsltproc is a command line tool
> written in c, part of the libxslt package from gnome, i think, that's
nice
> and quite fast. the java build tool, ant, has a style task which does
Yes, one day I'll get around to playing with those I hope.
xslt
> transformations. both of these can be used to batch build a web site >
Wow, I didn't know that (about ant). There is also anakia, which is
probably part of Velocity. Its pretty dern fast.
from
> a source tree if you don't need or want to do the transformations at
> request-time. the main advantages cocoon has to offer now are the >
ability
> to dynamically create xml, say, from a database or whatever, and the
Agreed!
> concept of a sitemap, which allows you to divorce your urlspace from
your
> filesystem, and to assign pluggable components to handle different
tasks
> in the construction of a resource for a url. and a plug for my friend
> sam,
> he has a python project called maki which is similar to cocoon2 but
uses
> python components if you're into that sort of thing.
Haven't gotten into python yet. Its on my long list of to-dos.
Anyhow as you can see below, the transformation takes like 11 seconds
which is fast enough for me. Its pretty big (7mb for one doc), but
*shrug* doesn't even make a dent in fatalpha.
Honestly, I used Cocoon because I could just adapt POI's build, rip out
the POI and jakarta stuff and write a couple of docs w/o any actual
effort.
using build file /home/trilug/acoliver/personal/build.xml
--------------------------------------------------------------
cleandocs:
Deleting directory /home/trilug/acoliver/personal/build/poi/docs
init:
--------------------------------------------------------------
POI [2001-2002]
--------------------------------------------------------------
Building with Ant version 1.4.1 compiled on October 11 2001
using build file /home/trilug/acoliver/personal/build.xml
--------------------------------------------------------------
prepare-docs:
Created dir: /home/trilug/acoliver/personal/build/poi/docs
Copying 1 file to /home/trilug/acoliver/personal/build/poi/documentation
Copying 1 file to
/home/trilug/acoliver/personal/build/poi/documentation/resources/entities
Moving 1 files to
/home/trilug/acoliver/personal/build/poi/documentation/WEB-INF/classes
docs:
Sitemap location = sitemap.xmap
Checking sitemap reload = false
Reloading sitemap asynchron = false
Sitemap check delay = 1 sec
INFO 10128 [ ] (): Warming up...
INFO 10128 [ ] (): [Cocoon might need to compile the
sitemaps, this might take a while]
WARN 10128 [ ] (): Looking up component on an uninitialized
ComponentManager: org.apache.cocoon.generation.GeneratorSelector
WARN 10128 [ ] (): Looking up component on an uninitialized
ComponentManager: org.apache.cocoon.transformation.TransformerSelector
WARN 10128 [ ] (): Looking up component on an uninitialized
ComponentManager: org.apache.cocoon.serialization.SerializerSelector
WARN 10128 [ ] (): Looking up component on an uninitialized
ComponentManager: org.apache.cocoon.reading.ReaderSelector
WARN 10128 [ ] (): Looking up component on an uninitialized
ComponentManager: org.apache.cocoon.acting.ActionSelector
WARN 10128 [ ] (): Looking up component on an uninitialized
ComponentManager: org.apache.cocoon.matching.MatcherSelector
WARN 10128 [ ] (): Looking up component on an uninitialized
ComponentManager: org.apache.cocoon.selection.SelectorSelector
WARN 10128 [ ] (): Looking up component on an uninitialized
ComponentManager: org.apache.cocoon.components.browser.Browser
WARN 10128 [ ] (): Looking up component on an uninitialized
ComponentManager: org.apache.cocoon.components.deli.Deli
WARN 10128 [ ] (): Looking up component on an uninitialized
ComponentManager: org.apache.cocoon.components.xslt.XSLTProcessor
WARN 10128 [ ] (): Looking up component on an uninitialized
ComponentManager: org.apache.cocoon.components.browser.Browser
WARN 10128 [ ] (): Looking up component on an uninitialized
ComponentManager: org.apache.cocoon.components.deli.Deli
WARN 10128 [ ] (): Looking up component on an uninitialized
ComponentManager: org.apache.cocoon.components.xslt.XSLTProcessor
INFO 10128 [ ] (): ...ready, let's go:
INFO 10128 [ ] (): Processing URI: index.html
INFO 10128 [ ] (): Link translated: hackinglog.html
INFO 10128 [ ] (): Link translated:
images/cocoon2-small.jpg
INFO 10128 [ ] (): [text/html]--> index.html
INFO 10128 [ ] (): Memory used: 7344416
INFO 10128 [ ] (): Processed, Translated & Left: 1, 3, 2
INFO 10128 [ ] (): Processing URI: hackinglog.html
INFO 10128 [ ] (): [text/html]--> hackinglog.html
INFO 10128 [ ] (): Memory used: 6092416
INFO 10128 [ ] (): Processed, Translated & Left: 2, 3, 1
INFO 10128 [ ] (): Processing URI: images/cocoon2-small.jpg
INFO 10128 [ ] (): [image/jpeg]-->
images/cocoon2-small.jpg
INFO 10128 [ ] (): Memory used: 6164368
INFO 10128 [ ] (): Processed, Translated & Left: 3, 3, 0
INFO 10128 [ ] (): Done
BUILD SUCCESSFUL
Total time: 11 seconds
--
www.superlinksoftware.com
www.sourceforge.net/projects/poi - port of Excel format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html
- fix java generics!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh
More information about the TriLUG
mailing list