You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Riddim Dread <ri...@hotmail.com> on 2004/06/07 06:01:28 UTC

Error in offline site generation

I get the following error when I try to run cocoon to generate a file in 
offline mode :

X [0]                       techsite/documents/tech/languages.xml       
BROKEN: Type 'file' is not defined for 'generate' at 
file:/home/femibyte/downloads/cocoon-2.1.2/techsite/sitemap.xmap:38:64
Total time: 0 minutes 4 seconds

Can anyone provide me w/ an explanation as to what is going on?

Here is what my sitemap.xmap looks like showing that I do specify the type 
as an option:

...

<!-- pages -->
      <map:match pattern="*/*.*">
        <map:generate type="file" src="documents/{1}/{2}.xml"/>
        <map:transform src="stylesheets/{3}.xsl">
          <map:parameter name="section" value="{1}"/>
          <map:parameter name="toc-file" value="../documents/toc.xml"/>
          <map:parameter name="base-url" value="/cocoon/techsite"/>
        </map:transform>
        <map:transform src="stylesheets/menupage.xsl">
          <map:parameter name="section" value="{1}"/>
          <map:parameter name="request-url" value="{2}.{3}"/>
          <map:parameter name="toc-file" value="../documents/toc.xml"/>
          <map:parameter name="css-stylesheet" value="default.css"/>
          <map:parameter name="base-url" value="/cocoon/techsite"/>
        </map:transform>
        <map:serialize/>
      </map:match>
....

Thanks,
Femi

_________________________________________________________________
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! 
http://join.msn.click-url.com/go/onm00200362ave/direct/01/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Error in offline site generation

Posted by Joerg Heinicke <jo...@gmx.de>.
On 07.06.2004 06:01, Riddim Dread wrote:
> I get the following error when I try to run cocoon to generate a file in 
> offline mode :
> 
> X [0]                       techsite/documents/tech/languages.xml       
> BROKEN: Type 'file' is not defined for 'generate' at 
> file:/home/femibyte/downloads/cocoon-2.1.2/techsite/sitemap.xmap:38:64
> Total time: 0 minutes 4 seconds
> 
> Can anyone provide me w/ an explanation as to what is going on?

This means you have a <map:generate type="file"/> in your sitemap, but 
nowhere defined what that generator is. If you don't use a subsitemap of 
the root sitemap delivered with Cocoon, you have to add a map:components 
section to your sitemap, where the file generator is defined:

<map:generator name="file" 
src="org.apache.cocoon.generation.FileGenerator"/>

The same must be added for the other components you use. Just have a 
look into the map:components section of Cocoon's default root sitemap.

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org