You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Peter Velychko <v_...@ukr.net> on 2003/06/10 07:57:49 UTC

Re[2]: CSS in Cocoon

Hello,

Monday, June 9, 2003, 11:46:57 PM, you wrote:

TB> So if I replaced the dialog.xsl to read:  
TB> <head><xsl:param name=" css-stylesheet" select="global.css'"/>
TB> <xsl:param name="css-stylesheet">text/css</xsl:param>
TB> Assuming the sitemap has not changed, it should work?

TB> It does not.  ???

You may try to use
<xsl:param name="html.stylesheet" select="'global.css'"/>
In your sample there is only closing quotation mark as a default value
of the <xsl:param /> that is incorrect.

TB> -----Original Message-----
TB> From: Conal Tuohy [mailto:conalt@paradise.net.nz] 
TB> Sent: Monday, June 09, 2003 3:41 PM
TB> To: cocoon-users@xml.apache.org
TB> Subject: RE: CSS in Cocoon

TB> Tim, presumably dialog.xsl is supposed to insert a <link> element into
TB> the html, pointing at the stylesheet which is passed as a parameter?

TB> But the dialog.xsl appears to expect a parameter called
TB> "html.stylesheet", whereas the parameter you are actually passing it
TB> (from the sitemap) is called "css-stylesheet".

TB> Cheers!

TB> 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
>> 
>> 

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





-- 
Best regards,
 Peter                            mailto:v_peter@ukr.net


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