you can find book on net " Cocoon Developer's Handbook (Developer's Library)"
On Wed, Mar 26, 2008 at 8:53 PM, Magnus Haraldsen Amundsen < [EMAIL PROTECTED]> wrote: > Thanks, for both thread replies :) > > It takes a while to get used to Cocoon, someone should sit down and > write a Cocoon 2.2 book (in english), soon! :) > > > -----Original Message----- > From: Grzegorz Kossakowski [mailto:[EMAIL PROTECTED] > Sent: 26. mars 2008 16:38 > To: [email protected] > Subject: Re: Cocoon 2.2: Accessing resources (images, css) > > Magnus Haraldsen Amundsen pisze: > > Hi, > > > > > > > > We have a web app where the images and stylesheets are defined in the > > pipeline as this: > > > > > > > > <map:match pattern="images/*.gif"> > > > > <map:read src="resources/images/{1}.gif" mime-type="image/gif"/> > > > > </map:match> > > > > > > > > In our XSLT we use the following syntax to display the images: > > > > > > > > <img alt="header logo" src="images/header.gif"/> > > > > > > > > And this works just fine when the url is like this: > > > > > > > > http://www.mysite.com/myapp > > > > > > > > However, when the url look like this: > > > > > > > > http://www.mysite.com/myapp/admin > > > > > > > > The images and stylesheets aren't accessed. How can this be solved? > > > > Both the example URLs use the same XSLT to be transformed. > > Hello Magnus, > > I was little bit surprised how many people could give different answers > and all of them feeling (at > least to me) inappropriate. ;-) > > I try to evangelize usage patterns of SSF obstinately but still I see > there is a plenty of room for > improvement of my actions. ;-) > What I want to say: use servlet: protocol + LinkRewritingTransformer and > forget about path issues! > You can check Forms samples in order to see how powerful this technique > is or this document that > would give you some hints: > http://cocoon.apache.org/2.2/blocks/forms/1.0/1351_1_1.html > > If you need further help don't hesitate to ask. > > -- > Grzegorz > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > IMPORTANT NOTICE: > This message may contain confidential information. > If you have received this e-mail in error, do not use, copy or > distribute it. Do not open any attachments. Delete it immediately from > your system and notify the sender promptly by e-mail that you > have done so. Thank you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks Bhavya Sharma
