At 09:56 AM 3/11/2003, you wrote:
Geoff,

Ok we are going to get this sorted!

My directory structure looks like this:

C:\tomcat\webapps\cocoon\soundpool\images\musicnews.gif

C:
  |-Program Files
       |-Apaache Group
                |- ...
  |-tomcat
       |-webapps
                |-cocoon
              \sitemap.xmap
                        |-soundpool
                          \sitemap.xmap
                                |-images
                                        \musicnews.gif


Aha. See below. Do you happen to have background.gif in the apache doc root tree by the way?



I have put the following code into my MAIN sitemap which is located in
the cocoon directory:

-------------------------------------------------------------
                <!-- soundpool Folder -->
                <map:pipeline>
                        <map:match pattern="soundpool/**">
                                <map:mount check-reload="yes"
reload-method="synchron" src="soundpool/sitemap.xmap"
uri-prefix="soundpool"/>
                        </map:match>
                </map:pipeline>
-------------------------------------------------------------

<snip/>


Now my readers in my soundpool sitemap look like this, with my current
directory set up:


------------------------------------------------------------- <!-- images Readers -->

                <map:match pattern="soundpool/images/*.gif">
                        <map:read mime-type="image/gif"
src="soundpool/images/{1}.gif"/>
                </map:match>

                <map:match pattern="soundpool/images/*.jpg">
                        <map:read mime-type="image/jpg"
src="soundpool/images/{1}.jpg"/>
                </map:match>
-------------------------------------------------------------


Wrong: your map:mount uses uri-prefix="soundpool" (this may need to be "soundpool/").

So your matchers here need to be pattern="images/*.gif" and likewise for *.jpg
See http://wiki.cocoondev.org/Wiki.jsp?page=UnderstandingCocoonMounts.

Also, the src will need to be relative to the mounted dir (whether you keep uri-prefix or not) - so src="images/{1}.jpg"

Isn't this like what you are using for the html?


The above code is within my pipeline in the soundpool sitemap. I also
have put the following code in the components section:


------------------------------------------------------------- <map:readers default="resource"> <map:reader logger="sitemap.reader.resource" name="resource" pool-max="32"

src="org.apache.cocoon.reading.ResourceReader"/>
        </map:readers>

        </map:components>
-------------------------------------------------------------

Right.



Finally in my xsl file I have referenced the image like so:

-------------------------------------------------------------
<body background="soundpool/images/musicnews.gif">
-------------------------------------------------------------

Right if you don't want them served by cocoon (in which case, ignore everything above - you don't need it)


To have this come from cocoon, use ="cocoon/soundpool/images/musicnews.gif" with the changes noted above.

Note: Look at the live site through Internet Explorer, as the Netscape
version is currently set to PDA version, which needs a lot of work. If
you don't have IE I can change them around.
I've been using IE.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to