 |  |  |  | I can't get XSP to work. What might be wrong? |  |  |  |  |
 |  |  |  | I get the exception Can't create store repository: //./repository.
Make sure it's there or you have writing permissions. How do I fix this?
|  |  |  |  |
 |  |  |  | Why doesn't xsl:output work? |  |  |  |  |
 |  |  |  | my processing instructions disappear, what's wrong? |  |  |  |  |
 |  |  |  |
I think that using Processing Instructions to "chain"
document layers somehow violates the context separation since I would like
to be able to place style sensible information in sessions or request
parameters. What do you think about this?
|  |  |  |  |
You are right, PI reaction breaks the context separation and it's, at the
very end, the wrong approach. To follow a complete "model, view,
controller" design pattern, one should be able to associate a different
processing chain for each requested URI and for every possible request state
(with request parameters, session parameters and environment parameters).
The proposed solution (as you read in the Cocoon2
outline) is to have a site map where site
managers decide what processing chain to apply to each possible request.
This somehow follows the mod_rewrite model in the Apache Web Server, but
rather than URL rewriting, the site map allows site designers to control the
behavior of their documents in one place without having to modify every
single reactive PI in each source file.
So, you've been warned: the PIs will go away, current functionality will
remain but the processing management will be abstracted one layer up.
|
(Cocoon's creator Stefano Mazzocchi answers): It's a pretty stupid reason and a funny
story: I spent my 1998 Xmas vacation with my girlfriend up on the Alps at her cottage. One
night I couldn't sleep, I went to watch some TV and finishing reading the XSL
documentation I brought with me. Being a science fiction afficionado, I found out
that Ron Howard's movie Cocoon was on and I started watching it. The idea of the XSL
rendering servlet stoke me like the alien "cocoons" in the pool stroke those old men in the
movie and, while watching, I started paper-coding it right away. After a while the movie
was over and the publishing framework designed. The name "Cocoon" seemed right
for the thing, meaning to be a way to bring new life to old ideas as well as to create cocoons
for such new ideas to become beautiful butterflies. :-)
|
|