cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Crine <>
Subject Re: Newbie question about CSS display
Date Fri, 28 Mar 2003 16:29:30 GMT

you're question is so wide.

Here is how I use a CSS in an XSL file.

load the CSS.

       <map:match pattern="style/*.css">
         <map:read mime-type="text/css" src="demo/{1}.css"/>

load the file :

         <map:match pattern="welcome">
           <map:generate type="file" src="proto/xml/welcome.xml"/>
           <map:transform type="xslt" src="proto/xsl/welcome.xsl"/>
           <map:serialize type="html"/>

In the XSL file :

<xsl:template match="/">
       <link rel="stylesheet" type="text/css" href="style.css"/> --> link 
to the style.


hope this help.
At 17:19 28/03/2003 +0100, you wrote:
>Hello Joe,
>you don't give very exact error description, only "it does not work". So 
>it's only possible to guess. Or you give us more information.
>I guess the error is a missing or a wrong match for the CSS.
>The information you can provide:
>1. Which URL do you type in the browser for the Cocoon delivered HTML.
>2. How does the according match pattern in the sitemap for the docbook 
>transformation look like.
>3. How does the <link/> tag for the CSS in the generated HTML look like?
>4. How does the according match pattern in the sitemap for the CSS look like?
>The transformation offline or in Cocoon may be different (but I don't 
>really think so), but has nothing to do with the loading of the CSS.
>Joe Williams wrote:
>>Forgive the elementary nature of this question, but I am new to Cocoon, my
>>background is documentation and not development, and I have read and
>>searched for an explanation for this weirdness without success.
>>Using DocBook XML and the DocBook XSL with a customization layer, I want to
>>change the styles using a CSS.
>>My formatting changes are displayed when I run the transformation from the
>>command line, but not when I use Cocoon.
>>Is this to be expected, or what? Does the transformation occur differently
>>when using Cocoon than when using Xalan alone?
>>A helpful link or answer would be appreciated.
>System Development
>Fon  +49(0)341-979-7419
>Fax  +49(0)341-979-7409
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message