Replies interspersed...

From: Simon Mieth <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Error in offline site generation
Date: Fri, 18 Jun 2004 15:37:45 +0200

On Fri, 18 Jun 2004 08:30:41 -0400
"Riddim Dread" <[EMAIL PROTECTED]> wrote:

> Thanks a lot for your help. I was able to resolve that
> problem and it runs without any error messages. However, I
> now have another problem. I am trying to explicitly
> generate an html file from an xml one, but it's creating
> the file as a directory with nothing in it :
>
>
>
> -bash-2.05b$ ls -l ts/dest
> total 4
> drwxr-xr-x    2 femibyte femibyte     4096 Jun 18 04:39
> languages.html/
>
> -bash-2.05b$ ls -l ts/dest/languages.html/
> total 0
>
>
> Here's what my cli.xconf file looks like:
>
> <context-dir>.</context-dir>
>    <config-file>build/webapp/WEB-INF/cocoon.xconf</config
>    -file><work-dir>ts/work</work-dir>
>    <dest-dir>ts/dest</dest-dir>
>
> ...
>
> <uri type="replace" src-prefix="techsite/documents/tech/"
>    src="languages.xml" dest="ts/dest/languages.html"/>
>
> Here's the matcher in the sitemap :
>
> <!-- pages -->
>       <map:match pattern="*/*/*/*.*">
>         <map:generate
>         src="techsite/documents/{3}/{4}.xml"/><map:transf
>         orm src="techsite/stylesheets/techarea.xsl">
>           <!--map:parameter name="section" value="{1}"/
>           --><!--map:parameter name="toc-file"
>       value="techsite/documents/toc.xml"/-->
>         <map:serialize type="html"/>
>           <!-- map:parameter name="base-url"
>           value="techsite"/ -->
>         </map:transform>
>         ...
>         <map:serialize type="html"/>
> </map:match>
>
>
...i

Hi,

maybe you should use <context-dir>build/webapp</context-dir>
if this is the directory where your webapp is located.

the <uri  dest=".." points normally to a directory where the
cli stores the generated files and subdirectories.

Maybe you want <uri src="languages.html"
src-prefix="techsite/documents/tech/" dest="ts/dest"/>

I don't think so because I'm trying to generate an html file from an xml file using an xsl stylesheet so I believe src should point to the source xml file.


This is the what you do with a browser (
"techsite/documents/tech/languages.html"
 = src-prefix + src = sitemap-url )


It looks like you have a <map:serialize> inside the <map:transform> element in your sitemap, you should remove it (the <map:serialize/> at the end of the pipeline is correct)

I removed it but still have the same problem

I hope that helps,
Simon

Thanks,
Femi

_________________________________________________________________
Looking to buy a house? Get informed with the Home Buying Guide from MSN House & Home. http://coldwellbanker.msn.com/



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to