When the result of the transformation goes to the browser, the latter will make a new request for the resource "style.css".

You can handle that request as any other with a matcher (for *.css). You need a reader for css files, not the generator>transformer>serializer usual. Try something like the following in your sitemap:

<map:match pattern="style.css">
<map:read mime-type="text/css" src="path/to/style.css"/>
</map:match>


Usefull tips on that and other things are on the wiki.

hth,

Manos

Lionel Crine wrote:
I'd like to generate an html document using a css file, with an xsl transformation.

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]>





---------------------------------------------------------------------
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]>

Reply via email to