----- Original Message ----- From: "Jeff Turner" <[EMAIL PROTECTED]> To: "Cocoon Users" <[EMAIL PROTECTED]> Sent: Saturday, January 25, 2003 6:02 AM Subject: Re: The simplest possible cocoon application?
> On Sat, Jan 25, 2003 at 05:21:13AM +0100, Robert Simmons wrote: > > I currently have the cocoon war installed on my JBoss 3.0.4 server. It > > works fine. I deployed a second war file that contains an XML and an > > XSL. The XML has an embedded xsl:stylesheet processing instruction. > > Embedded stylesheets are very unusual.. are you sure it's Cocoon applying > the embedded stylesheet, or the web browser? Hmm, how could I tell? What would you use if you didnt embedd the stylesheet into the XML? Oh, I get it, the pipeline tells it what transform to make ? Addendum: I undeployed cocoon from jboss and the transform still worked. Must be the browser doing it. OOK .. =) Now I feel like i actually know LESS than before. > > > When I go to the URL inside the war and hit the XML page, the > > translation is made fine. > > > > Ok so here is the question. I am now thinking of doing something a bit > > more than static XML pages. What would be the bare minimum? Do I have > > to copy the cocoon war and all the libs in it to another deployment or > > can I use the jars already deployed in the war? > > Each war has one main sitemap. Each sitemap can have lots of different > pipelines. Where did the 'second war file' you mention come from? Did > you copy the sitemap and WEB-INF/cocoon.xconf from the Cocoon samples > war? > What I mean is that, if possible, I dont want to copy the whole MASSIVE jar library in the cocoon distribution war into every blasted web app that I create. The thing thats stumping the newbie here is how a user uses it. It almost seems like i have to be practically a dveloper on cocoon to use it. I honestly dont care how it works, I just ultimately want to write come generators that smack a EJB and spit out XML that then gets transformed. Basically what i have right now is a normal java servlet that builds a dom document, serializes it to xml and trusts the xsl transform to put out the html and so on. The servlet has a massive number of methods from all the commands being handeled. I want to nuke that servlet and instead write cocoon generators to spit out the xml and then let cocoon do its magic. However after 12 hours of reading, Im still a tad lost. > > Do sitemaps work outside of the cocoon war? > > No. Wars are completely self-contained things. Yes yes, I know this. But if I deploy 5 different WARs to the server, I dont want to have that HUGE library of jars in every war. > > > How can I set up a simple application, prior to considering generators, > > outside of the cocoon deployment? > > What do you mean, 'outside' a deployment? The issue with the jars is what I mean. > > > Note. The lack of truly newbie cocoon documentation is appalling. > > Fortunately we have a Wiki where anyone can document things. This page > looks quite relevant to your question: > I will read it ... but I have to say that this looks liek a very powerful front end that once you know it, it is great. Prior to that there is ALLOT of head scratching. And I dont think im any lightweight at programmign either. > http://wiki.cocoondev.org/Wiki.jsp?page=SimpleTransformations > > > --Jeff > > > -- Robert > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>