This works in my site.
<!-- css -->
<map:match pattern="*.css">
<map:read src="css/{1}.css" mime-type="text/css"/>
</map:match>
<map:match pattern="**/*.css">
<map:read src="css/{2}.css" mime-type="text/css"/>
</map:match>
_____________________________________________
Kieran Kirwan
Executive Transportation Planner
Transportation Modelling Department
Dublin Transportation Office
Hainault House,
69/71 St. Stephen's Green,
Dublin 2,
Ireland.
Tel: +353 (0)1 4778113
Fax: +353 (0) 1 478 5935
website: www.dto.ie <http://www.dto.ie/>
-----Original Message-----
From: Ben Munat [mailto:[EMAIL PROTECTED]
Sent: 08 August 2003 09:39
To: [EMAIL PROTECTED]
Subject: serving css and images
Hello. I'm very new to Cocoon... wobbling along. At this point I'm just
trying to get Cocoon to serve an xml file transformed to xhtml with an
xslt. Well actually, I did get it to serve the file. However, the
resulting page has a link to an image and a css file and those are not
coming through.
I have the Cocoon Developer's Handbook and it seems to indicate that I
need to do this in my subsitemap:
<map:pipeline>
<map:match pattern="**/*.css">
<map:read mime-type="text/css" src="style/{2}.css"/>
</map:match>
</map:pipeline>
<map:pipeline>
<map:match pattern="**/*.gif">
<map:read mime-type="text/css" src="style/{2}.css"/>
</map:match>
</map:pipeline>
However, that hasn't solved the problem. Anyone have any idea what I'm
missing? I do need to have these pipelines in my sitemap so that pages
can find their images and stylesheets, right?
Thanks in advance,
Ben Munat
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
Mail Marshal for the presence of computer viruses.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]