cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomasz Muldner" <tomasz.muld...@acadiau.ca>
Subject accessing resources in sibling directories
Date Thu, 19 Dec 2002 20:03:37 GMT
Hi,
I'm trying to modify an example of a gallery from the Cocoon book, and have
this directory structure:

Directory: mount
sub-directories:  photos   gallery
In the photos directory there are jpeg files (in the original example,
photos were in a subdirectory of "gallery").
In the gallery directory there is sitemap.xmap shown below.
When I use
http://localhost:8080/cocoon/mount/gallery/gallery

the html file is generated, but it only contains "empty"  thumbnails, no
pictures. It appears that the reader is the second match is not executed.
WHY??
<?xml version="1.0"?>

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">

<map:pipelines>

<map:pipeline>

<map:match pattern="gallery">

<map:generate src="../photos" type="imagedirectory"/>

<map:transform src="gallery.xsl"/>

<map:serialize type="html"/>

</map:match>


<map:match pattern="../photos/**">

<map:read src="../photos/{1}"/>

</map:match>

</map:pipeline>

</map:pipelines>

</map:sitemap>

=================

gallery.xsl is included in this email.



Thank you

Tomasz



Mime
View raw message