Hi,

Well then I should make another list ;-)

A. Backup your cocoon + tomcat (copy it in a zip or something)
B. Shutdown tomcat
C. Delete ROOT (in webapps of tomcat)
D. rename cocoon to ROOT
E. Open your sitemap and mount the directory of the user (look in the
example sitemap how to do that)
F. Create a sitemap for that subdirectory.
G. Start tomcat

Instead of E & F you can also do (in the sitemap.xmap of cocoon)
<map:match pattern="**.xml">
   <map:generate src = "{1}.xml"/>
   <!--<map:transform src="....whatever...."/>-->
   <map:serialize type = "xml"/>
</map:match>

the wildcard will fill the {1}. When you call
http://localhost/~user/hello-page.xml

{1} will contain ~user/hello-page.xml

Cocoon will for example load: C:\tomcat4\webapps\ROOT\~user\hello-page.xml
If you add a tranformation each xml matching the wildcard will be
transformed...

ps. to change the port goto server.xml of tomcat and search for
org.apache.catalina.connector.http.HttpConnector. Change port 8080 to 80.

-----Oorspronkelijk bericht-----
Van: Jens Nie [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 27 mei 2002 21:42
Aan: [EMAIL PROTECTED]
Onderwerp: Re: renewed Newbie Question


Am Montag, 27. Mai 2002 14:43 schrieb Graaf, Edgar de (fin):
> If I understand you correctly you want users to be able to place xml in
> cocoon that is processed by cocoon.
> Well:
> 1. Create a subdirectory in ../cocoon/
> 2. Mount that directory (in the sitemap.xmap of /cocoon/)
> 3. In that subdirectory you place a sitemap.xmap
> 4. Per user make a directory and give them access.
> 5. If you want them to be able to run xsp you add the following to the
> sitemap:
> <map:match pattern="apidoc/**.xsp">
>   <map:generate type = "serverpages" src = "docs/{1}.xsp"/>
>   <!--<map:transform src="....whatever...."/>-->
>   <map:serialize type = "html"/>
> </map:match>
>
Well at first thank you for that suggestion. But i think it does not exactly

match what i wan't to do using cocoon. See the following example:

http://localhost:8080/cocoon/samples/hello/hello-page.xml

gives me the simplest xml-to html transform possible. That's taken from the 
live samples section of cocoon, and is working pretty well.
As far as i understand the whole thing, this works because tomcat running at

localhost:8080 knows to run cocoon on this url as /cocoon/ is in the path
and 
it's an xml-document. What I wan't to have working is the same thing with
the 
following url:

http://localhost:8080/~user/cocoon/samples/hello/hello-page.xml

or even better

http://localhost/~user/hello-page.xml

that is really all that would be satisfying (at the moment of course)

Thanks for any help

        jneines

-- 
                        Dipl.-Phys. Jens Nie
        Fachbereich Physik, Universität Osnabrück
[EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie

---------------------------------------------------------------------
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]>

Reply via email to