Joe,

you're question is so wide.

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

load the CSS.


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

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"/>
        </map:match>


In the XSL file :


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


....


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.

Regards,

Joerg

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
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to