cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Curro, Joseph" <>
Subject RE: Small Problem with Cocoon
Date Thu, 20 Jan 2000 19:56:06 GMT
If you refer to the stylesheet with a full URL, it should work.  Stefano
posted a fix to CVS today.

-----Original Message-----
From: Hitesh Kr. Seth []
Sent: Thursday, January 20, 2000 2:21 PM
Subject: Small Problem with Cocoon


My environment is JRun v 2.3.3, Sun JDK 1.1, Windows NT Server 4.0 SP4, IIS

I am having a small (most probably a configuration issue) with Cocoon.

I have been able to make the following xml page (xsp enabled!) work
<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
 java.util.Date today = new java.util.Date();
 <title>Hello World!</title>
  <paragraph>This is my first Cocoon page!</paragraph>
  <paragraph>Today's date is


but whenever in a page i refer to a particular stylesheet
e.g. the hello-page.xml example that is included with
Cocoon (in the %COCOON%\samples\hello directory)

<?xml version="1.0"?>
<?xml-stylesheet href="hello-page-html.xsl" type="text/xsl"?>
<?cocoon-process type="xslt"?>

<!-- Written by Stefano Mazzocchi "" -->

  <paragraph>This is my first Cocoon page!</paragraph>

I get an error
org.apache.cocoon.processor.ProcessorException: Could not associate
stylesheet to document:  error reading hello-page-html.xsl:

I guess the Cocoon servlet is not able to find the xsl file.

My file says the following for document root


Could anyone point out what should be the document root parameter.

Also, just wanted to add that if I keep the complete URL of the xsl file
(http://localhost/Cocoon/hello/hello-page-html.xsl) in the XML file
then, it definately works.

A suggestion to the developers, is there any command we can pass to the
cocoon servlet
which will dump all the configuration details. (so that we know whats is
being used as
the configuration parameters). something like

This might be useful for people to submit bugs and problems etc. Just a

Best Regards


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

View raw message