You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2003/10/06 17:35:20 UTC

DO NOT REPLY [Bug 12158] - some improvements to Main.java

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12158>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12158

some improvements to Main.java

uv@upaya.co.uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From uv@upaya.co.uk  2003-10-06 15:35 -------
As I see it, the only reason for generating the same page more than once is to
store that page to different places, or because of some side effect of the page.

The former can be done using the cli.xconf file:
<uri src-prefix="samples/hello-world/" src="hello.html" dest="hello1.html"/>
<uri src-prefix="samples/hello-world/" src="hello.html" dest="hello2.html"/>

In this way, the page is written to two different files, hello1.html and
hello2.html.

It is not recommended to use the CLI because of some side effects caused by page
generation, and thus we won't be adding functionality to allow it.

You can achieve the same effect, however, by using the sitemap to allow multiple
URIs to refer to the same pipeline, and thus you can generate two different
URIs, each generating the same content, and thus getting your side effect as
required.

I have now closed this bug. If I have not understood your issue, please reopen
the bug.

Upayavira