Lets not make things complicated :)
... You need your own project directory which can go under the
cocooc/mount directory. In that project directory you will need your own
sitpmap.xmap file for your work :)
...but I would not recommend that because when you delete the cocoon
directory by accident late one night you will loose your work :(
... Try this...
search the main default sitemap file for the keyword "mount".
then add AFTER the <map:pipelines>
---------------------------------------------
<map:pipelines>
...
<!-- OyaP Applications -->
<map:pipeline>
<map:match pattern="oyap/**">
<map:mount check-reload="yes"
src="/data3/home/wu1000/public_html/extra/technology/" uri-prefix="oyap"/>
</map:match>
</map:pipeline>
...
</map:pipelines>
---------------------------------------------
Now setup the src to your own project, then in that project add a new
sitemap file like :
---------------------------------------------
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
<map:generators default="file"/>
<map:transformers default="xslt"/>
<map:readers default="resource"/>
<map:serializers default="html"/>
<map:matchers default="wildcard"/>
<map:selectors default="browser"/>
</map:components>
<map:pipelines>
<map:pipeline>
<map:match pattern="">
<map:redirect-to uri="index.html" />
</map:match>
<map:match pattern="*.html">
<map:read src="{1}.html" mime-type="text/html" />
</map:match>
<map:match pattern="00-**.xml">
<map:generate src="00/xml/{1}.xml"/>
<map:transform src="04/system/main.xsl"/>
<map:serialize/>
</map:match>
...
<map:handle-errors type="404">
<map:transform src="xsl/system/error2html.xsl"/>
<map:serialize/>
</map:handle-errors>
</map:pipeline>
</map:pipelines>
</map:sitemap>
<!-- end of file -->
---------------------------------------------
**Now if you type a URL from the browser that is empty a read will be
made to the index.html.
** If you enter a html file like 123.html then it will look for 123.html
in the current directory of the project.
** if you type myserver.net/testing/00-apage.xml what do you think will
happen? yes it will go to the 00 dirctory (silly name just part of my
project) then the "xml" directory and then look for apage.xml (not
00-apage.xml)
Hope that helps....
Stephen Smithstone wrote:
> OK so now i createed a dir called
>
> testing/ in my cocoon dir and then in the /cocoon/sitemap.xmap
>
> i added
>
> <map:match pattern="testing">
> <map:mount uri-prefix="testing" check-reload="yes"
> reload-method="synchron" src="testing/" />
> </map:match>
>
> <map:match pattern="testing/**">
> <map:mount uri-prefix="testing" check-reload="yes"
> reload-method="synchron" src="testing/" />
> </map:match>
>
> and in the testing/sitemap.xmap
>
> i added
>
> <map:match pattern="">
> <map:redirect-to uri="testing/static/index.html" />
> </map:match>
>
> <map:match pattern="*.html">
> <map:read src="static/*.html" />
> </map:match>
>
>
> i have static/ in my testing/ and a index.html in the static/
>
> is this correct way to set it up???
>
> Please help i seem to be going around in circles
>
> Stephen
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>