cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Reijn <jre...@hippo.nl>
Subject Re: using URL in <map:match>
Date Mon, 08 Mar 2004 16:33:13 GMT
Hi,

you could use the internal cocoon protocol:

like

<map:match pattern="*.pdf">
<map:generate src=" 
<http://localhost:7001/baseinfo/getxmldata>cocoon:/baseinfo/getxmldata" />
<map:transform src="format/style/xsl/doc2pdf.xsl"/>
<map:serialize type="fo2pdf" />
</map:match>

in wich case the baseinfo/getxmldata is another matcher.

Greetz,

Jeroen


reza x schreef:

> hi all
> I want use sitemap to get the output stream from a servlet.
> my sitemap.xml snippest now is like this:
> <map:match pattern="*.pdf">
> <map:generate src="http://localhost:7001/baseinfo/getxmldata" />
> <map:transform src="format/style/xsl/doc2pdf.xsl"/>
> <map:serialize type="fo2pdf" />
> </map:match>
> getxmldata if for calling the servlet which produce the needed xml stream.
> how can I ignore the http://localhost:7001. is there any key to 
> replace it and make it portable and flexible.
> thanks alot for your attention.
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Search - Find what you’re looking for faster. 
> <http://search.yahoo.com/?fr=ad-mailsig-home> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message