Consider the css request as just another request to cocoon.  In other words 
you must make an entry in your sitemap for css files.  Something like this:
    <map:match pattern="*.css">
      <map:read src="css/{1}.css" mime-type="text/css"/>
    </map:match>
In you XSL file you have to make sure you get the link to your css file 
in.  I added <LINK rel="stylesheet" href="forms.css" type="text/css"/> in 
the "HEAD" part of my output.
I then put the css file in the css subdirectory (relative to the 
sitemap).  Works like a charm.
Bert

At 10:12 21/02/2002 +0100, you wrote:
>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]>

Reply via email to