You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mac Schwarz <mc...@phil.uni-erlangen.de> on 2000/07/04 15:46:46 UTC

Cocoon2 and CSS

Hi,

could someone give me a hint how to include a cascading stylesheet via
XSL with Tomcat 3.1 / Cocoon2? Maybe I don't get the whole concept of C2
/ sitemaps etc. yet.

But simply adding <link rel="stylesheet" href="style.css"/>  to the
template like I did with JServ / Cocoon 1.7 seems not to work. Do I have
to use an other technique?

With the line above I can use nonexistant paths and dummy names for the
css stylesheet. In the source of the resulting html page those dummy
names are never processed, eg. 
<link rel="stylesheet" href="thisstylesheetdoesnotexist.css"/> is in the
head of the html page but gives no error at all.

At the moment the only way to include the CSS was to setup an extra
apache server for serving this one stylesheet via <link rel="stylesheet"
href="http://apacheserver.xy/style.css"/>.

Since I'm trying to get this working since yesterday now I would be
really grateful for an short example.

Regards,
	mac

-- 
Mac Schwarz / AERIA Projekt / Inst. f. Klassische Archaeologie
e-mail: mac@aeria.phil.uni-erlangen.de  / Tel.: 09131-85-24791
 FAU Erlangen-Nuernberg   /   Kochstr.4   /   91054 Erlangen
  <http://www.phil.uni-erlangen.de/~p1altar/aeriahome.html>