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> > > > The weird thing is that the file is created properly when > I use cocoon in a servlet container. Can anyone help me > out here? > > Thanks, > Femi 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"/> 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 hope that helps, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]