Alexander Schatten wrote:

Upayavira tried to help me the last days to get the Cocoon CLI running to generate the website for a Cocoon-Tutorial Day. Thanks again, I made some steps forward but:

after meanwhile days of work, I unfortunately still have no result. I came so far, that

(1) I downloaded the recent CVS sources

(2) I modified the local.blocks.properties by excluding all unstable blocks as well as hsqldb

(3) cocoon compiles then.

(4) I install my webapplication, start cocoon in servlet mode--for test purpose---and it displays correctly with the url:

http://localhost:8888/cocoon-day/index.html

so this works fine.

(5) then I use the default cli.xconfig but add/modify:

<uri type="replace"
src-prefix="samples/"
src="hello-world/hello.html"
dest="build/dest/hello-world.html"/>


<uris name="CocoonDay" follow-links="true">
<uri type="replace"
src-prefix=""
src="cocoon-day/index.html"
dest="build/dest/cocoon-day"/>
</uris>

If you want to follow links, you must not use 'replace'. It looks to me like you should use:


<uris name="CocoonDay" follow-links="true">
<uri type="append"
src-prefix="cocoon-day"
src="index.html"
dest="build/dest/cocoon-day-site/"/>
</uris>



(btw. the default installed example does not work, but this is no miracle, as there is no /hello-world/hello.html. I believe, again, that at least the default exmaple should work)

It works for me. There is a /samples/hello-world/hello.html. But you have to include the samples for it to work.



o.k. then


(6) ./cocoon.sh cli -x cli.xconf

(7) cli now runs at least without exceptions, with the result:

* [1/0]     [0/0]     3.186s 4.6Kb   cocoon-day/index.html
Total time: 0 minutes 6 seconds,  Site size: 4,752 Site pages: 1

Are you using confirm-links="true"? If so, you need to have a links view in your sitemap. Otherwise, try changing confirm-links to false.


With confirm-links=true and no link view, it cannot follow links.

as a matter of fact, not a single result page is created :-(

Hmm. That doesn't sound right.


I tried various combinations in the uri statement, but always with the same "null" result...


to be honest, I have no further idea how to proceed.

Try the above and let me know.


-+-+-+-+-+-+-+-+-+-
I really would be glad if someone could help me: I added the cocoonday website to:


http://www.schatten.info/info/cocoon-day.tar.gz

additionally I copied the cli.xconf into this tar. So if anyone would like to check this this would be really glad.
-+-+-+-+-+-+-+-+-+-

I've downloaded it and will try it out tomorrow morning.


I would have liked to present this offline feature next week, but I have to drop it otherwise, as I cannot present something to new users, that not even I was able to get up and running in more than a week of hard trying...

I hope we can get this working. It shouldn't be that hard.



thank you!!


You're welcome.

Upayavira


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



Reply via email to