cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Flynn <>
Subject Still nothing served
Date Wed, 05 Jun 2002 15:26:29 GMT
I'm still having no luck getting Cocoon to serve me a file of my own.
It's working fine for the distro files, docs, etc.

I added this to sitemap.xmap:

      <map:match pattern="foo/**">
	<map:generate src="foo/foo.xml"/>
	<map:transform src="foo/foo.xsl"/>
	<map:serialize type="html"/>

(in the space just above the example <map:match pattern="**/">)

The intention is to test if Cocon will serve a request for
localhost:8080/coocon/foo/{anything} by responding with the
transformed result of a single named XML file through a single named
XSL file and nothing else (this being the simplest possible static

I created a directory foo in the installation directory

I put in there a 2-line foo.xml:

<?xml version="1.0"?>

and a short foo.xsl to transform it to HTML:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="" version="1.0">
  <xsl:output method="html"/>
  <xsl:template match="/">
      <body bgcolor="#FFFFFF">
  <xsl:template match="foo">

(which all works: you can see it in Cocoon-1 at

When I load the URL I get
nothing at all: the browser (Moz 1.0) spins its wheels and waits and
waits and waits and nothing happens. The log file says: - - [05/Jun/2002:14:49:33 00] "GET /cocoon/foo/foo.xml HTTP/1.1" 200 3854

so something is happening...but what? And why no response?

a. Do I have to shutdown and startup Cocoon every time I change
   sitemap.xmap? I've tried with and without and it seems to have
   no effect.

b. What directory is the match pattern relative to? This is not
   specified in the docs, so I'm guessing the directory within
   webapps where Tomcat created cocoon/ from coocon.war when it
   was installed (the one quoted above).

c. There is clearly something wrong with my syntax or assumptions
   but it is not clear what.


Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message