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
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dir="http://apache.org/cocoon/directory/2.0"> <xsl:template match="/"> <html> <body> <center> <h1>The Gallery</h1> </center> <xsl:for-each select="dir:directory/dir:file"> <img src="{/dir:directory/@name}/{@name}" width="100" height="100"/>   </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet>
--------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>