You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mathias Ochsendorf <ma...@ochsendorf.net> on 2002/03/28 10:24:49 UTC

S: map:generate called twice

Hello,

I'm working with the CVS-Version of Cocoon 2 from last Wednesday
(3/27/02).
According to
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100834637226164&w=2
this problem has to be fixes since a couple of months.

But every cocoon request to /NotifyService invokes the Apache server
(bluescreen:80) twice.
The logfile of cocoon records only one request for /NotifyService, apache
logs the
message_start.php twice.

sitemap.xmap:
[...]
<map:match pattern="NotifyService">
  <map:generate
       src="http://bluescreen/message_start.php?control=106"/>
  <map:transform src="rc/transforms/html-renderer.xsl" type="xslt"/>
  <map:serialize type="html"/>
</map:match>
[...]

Any hints ?

Thx, Mathias

-- 
Mathias Ochsendorf
www: www.ochsendorf.net | www.ochsendorf.de
ICQ: 68556900


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: map:generate called twice

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Mathias Ochsendorf [mailto:matze@ochsendorf.net]
> 
> Hello,
> 
> I'm working with the CVS-Version of Cocoon 2 from last Wednesday
> (3/27/02).
> According to
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100834637226164&w=2
> this problem has to be fixes since a couple of months.

If you read it carefully you will notice that it has to do with the
source for the XSLT transformation, not file generator.


> But every cocoon request to /NotifyService invokes the Apache server
> (bluescreen:80) twice.
> The logfile of cocoon records only one request for /NotifyService,
apache
> logs the
> message_start.php twice.

I guess that the first time it gets URL information (like
lastModificationDate and contentLength), and second time it gets the
content. See components/source/URLSource if you want to understand this.

Vadim	


> sitemap.xmap:
> [...]
> <map:match pattern="NotifyService">
>   <map:generate
>        src="http://bluescreen/message_start.php?control=106"/>
>   <map:transform src="rc/transforms/html-renderer.xsl" type="xslt"/>
>   <map:serialize type="html"/>
> </map:match>
> [...]
> 
> Any hints ?
> 
> Thx, Mathias
> 
> --
> Mathias Ochsendorf
> www: www.ochsendorf.net | www.ochsendorf.de
> ICQ: 68556900


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>