Hi,
I managed to get it to work. Maybe you can tell what error you receive?
I added the following lines to my sitemap.xmap:
<map:match pattern="cssfilesdir/*.css">
<map:read src="cssfilesdir/{1}.css" mime-type="text/css"/>
</map:match>
Richard Korthuis
----- Original Message -----
From: "Je vous site" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 10:12 AM
Subject: CSS with COCOON
> Hello
>
> Does anybody, manage to link a CSS Stylesheet on a HTML File generated
> with an XML / XSL Transformation ?
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:template match="/">
>
> <html>
> <head>
> <link rel="stylesheet" href="style.css" type="text/css" />
> </head>
> <body>
> ...
>
> Please Help !
>
> Xavier
>
>
> P S: I see that
>
> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> is
> added by the serializer.
>
> P P S
> In local mode, IE or Netscape show what i expect, the "style.css" file
> is in the same directory as the "xml" and "xsl" file
>
> <map:match pattern="xavier/*.html">
> <map:generate type="file" src="xavier/{1}.xml"/>
> <map:transform type="xslt" src="xavier/{1}.xsl"/>
> <map:serialize/>
> </map:match>
>
>
>
> Xavier
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>