You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by M Al-yahya <mm...@Cs.Nott.AC.UK> on 2002/07/03 14:54:35 UTC

Search hits in new page

Hello,
 I'm doing XML Search using the SearchGenerator. I have the following in
the sitemap pipeline:
  <map:match pattern="**findIt">
     	<map:generate type="search"/>
      	<map:transform type="log"/>
	<map:transform src="stylesheets/search2html.xsl"/>
   	<map:serialize/>
   </map:match>
the stylesheet I'm using is the one in cocoon/search/stylesheets. This
stylesheet displays the  search form and the results in one page. Does
anyone know how to display the results in a new browser page.

Cheers,
Maha

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


Re: Search hits in new page

Posted by M Al-yahya <mm...@Cs.Nott.AC.UK>.
Hello,
Thanks Jeremy for your reply. Well I changed the action of the form to
map the pipeline that does the search and the results were displayed in
a separate page.

Jeremy Quinn wrote:
> 
> On Wednesday, July 3, 2002, at 01:54 PM, M Al-yahya wrote:
> 
> > Hello,
> >  I'm doing XML Search using the SearchGenerator. I have the
> > following in
> > the sitemap pipeline:
> >   <map:match pattern="**findIt">
> >       <map:generate type="search"/>
> >               <map:transform type="log"/>
> >       <map:transform src="stylesheets/search2html.xsl"/>
> >       <map:serialize/>
> >    </map:match>
> > the stylesheet I'm using is the one in cocoon/search/stylesheets. This
> > stylesheet displays the  search form and the results in one page. Does
> > anyone know how to display the results in a new browser page.
> >
> 
> Read up on forms at
> http://www.w3.org/TR/html4/interact/forms.html#h-17.3 ;)
> 
> Put a 'target' attribute in your 'form' tag, with the name of
> the new window as the value.
> 
> <form action="findIt" target="results">
> 
>         <!-- your form fields -->
> 
> </form>
> 
> regards Jeremy
> 
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>

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


Re: Search hits in new page

Posted by Jeremy Quinn <sh...@mac.com>.
On Wednesday, July 3, 2002, at 01:54 PM, M Al-yahya wrote:

> Hello,
>  I'm doing XML Search using the SearchGenerator. I have the 
> following in
> the sitemap pipeline:
>   <map:match pattern="**findIt">
>      	<map:generate type="search"/>
>       	<map:transform type="log"/>
> 	<map:transform src="stylesheets/search2html.xsl"/>
>    	<map:serialize/>
>    </map:match>
> the stylesheet I'm using is the one in cocoon/search/stylesheets. This
> stylesheet displays the  search form and the results in one page. Does
> anyone know how to display the results in a new browser page.
>

Read up on forms at 
http://www.w3.org/TR/html4/interact/forms.html#h-17.3 ;)

Put a 'target' attribute in your 'form' tag, with the name of 
the new window as the value.

<form action="findIt" target="results">

	<!-- your form fields -->

</form>


regards Jeremy


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