Hiya,
First of all, the mime-type for the 2nd pipeline should be "image/gif".
Secondly, your source for the image is "style/*.css" so you're also
reading the stylesheet to be displayed instead of the image.
Should the second pipeline not be something along the lines of
<map:pipeline>
<map:match pattern="**/*.gif">
<map:read mime-type="image/gif"
src="<image_folder>/{2}.gif"/>
</map:match>
</map:pipeline>
Where <image_folder> is the location of your images?
Hope that helps,
Regards,
Cedric
-----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 e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]