Hi!
You are absolut right Niclas, ONE request = ONE response so the first window must have some Javascript inside which is called by an onload event in the body tag. This script opens the second window with the pdf inside. cheers Manfred [EMAIL PROTECTED] am 28.01.2003 10:28:53 Bitte antworten an [EMAIL PROTECTED]@inet An: [EMAIL PROTECTED] Kopie: Thema: Re: How to open 2 windows? On Tuesday 28 January 2003 17:27, [EMAIL PROTECTED] wrote: > Hi, > > I want to open 2 windows on one "event". The xml/xsp (I mean the data) > would be the same, but the output would be: first window html, second > window pdf. > > e.g. my "dummy" sitemap: > ... > <!-- on submit generate *.html and *.pdf output --> > <map:match pattern="html-pdf"> > <map:generate type="serverpages" src="html-pdf.xsp"/> > <!-- generate a window with html output > <map:transform src="html.xsl"/> > <map:serialize> > --> > <!-- generate another window with pdf output > <map:transform src="pdf.xsl"/> > <map:serialize type="fo2pdf"/> > --> > </map:match> > > How can I manage this? Can I mange this from my sitemap? I am far from an expert, but it seems like you are asking for something impossible (there is only a single destination). However, by applying your HTML knowledge, you can have the first "html.xsl" generate a "OnLoad" and automatic popup (different URL) that brings the PDF document in a separate window on the client with the second HTTP request. Maybe not clear enough, understand? Niclas --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.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/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>