cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amelie Cordier" <acord...@insa-rouen.fr>
Subject RE: CSS in Cocoon
Date Mon, 09 Jun 2003 21:52:26 GMT
Hello

Why using params in your xsl?

Why don't you try something like that :

In your xsl :
<link rel="stylesheet" type="text/css" href="style.css"/>

And in the sitemap :
      <map:match pattern="style.css">
    	 <map:read mime-type="text/css" src="stylesheets/style.css"/>
      </map:match>

This is what I do and it works perfectly but I don't know if it'a a good
solution :)

Cheers !

Amelie

> So if I replaced the dialog.xsl to read:
> <head><xsl:param name=" css-stylesheet" select="global.css'"/>
> <xsl:param name="css-stylesheet">text/css</xsl:param>
> Assuming the sitemap has not changed, it should work?
>
> It does not.  ???
>
> -----Original Message-----
> From: Conal Tuohy [mailto:conalt@paradise.net.nz]
> Sent: Monday, June 09, 2003 3:41 PM
> To: cocoon-users@xml.apache.org
> Subject: RE: CSS in Cocoon
>
> Tim, presumably dialog.xsl is supposed to insert a <link> element into
> the html, pointing at the stylesheet which is passed as a parameter?
>
> But the dialog.xsl appears to expect a parameter called
> "html.stylesheet", whereas the parameter you are actually passing it
> (from the sitemap) is called "css-stylesheet".
>
> Cheers!
>
> Con
>
>> -----Original Message-----
>> From: Tim Bachta [mailto:tbachta@kopent.com]
>> Sent: Tuesday, 10 June 2003 08:19
>> To: cocoon-users@xml.apache.org
>> Subject: CSS in Cocoon
>>
>>
>> I am trying to use a stylesheet in a xsl page and am getting a null
>> pointer exception coming from my xsl page.  My syntax is
>> below, I am new
>> to Cocoon so please excuse my mistakes.  I appreciate the help.
>>
>> dialog.xsl
>>
>> <xsl:param name="html.stylesheet" select="global.css'"/>
>> <xsl:param name="html.stylesheet.type">text/css</xsl:param>
>>
>> sitemap
>>
>> <map:match pattern="login">
>> <map:generate type="serverpages" src="xsp/login.xsp"/>
>> <map:transform type="xslt" src="style/dialog.xsl">
>> <map:parameter name="css-stylesheet" value="global.css"/>
>> </map:transform>
>> <map:serialize type="html"/>
>> </map:match>
>>
>> <map:match pattern="global.css">
>> <map:read src="global.css" mime-type="text/css"/>
>> </map:match>
>>
>> Thank you
>>
>> Tim B
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>>
>>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message