Lionel, > I'd like to generate an html document using a css file, with an xsl > transformation.
What you suggest is the correct way to do it. What you need though is a little bit of code in your sitemap to tell Cocoon how to handle requests for CSS files. This would do it: <map:match pattern="*.css"> <map:read src="html/{1}.css" mime-type="text/css"/> </map:match> What this is saying is 'for any file ending in .css, pass the equivalent file from the html directory. The fact that you are using a reader means that you will pass the content out unprocessed, i.e. not going through an XML pipeline. Hope that helps. Regards, Upayavira > > Here is what i wrote : > > > <xsl:template match="content"> > <html> > <head> > </head> > <link rel="stylesheet" type="text/css" href="style.css"/> > <body> > <h1 align="center">DEMO</h1> > <xsl:apply-templates/> > </body> > </html> > </xsl:template> > ... > > I think this is not the way to use css with cocoon? > I read about a resource tag but I don't figure out how to join my documents. --------------------------------------------------------------------- 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]>