You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by reza x <re...@yahoo.com> on 2004/03/08 14:33:45 UTC

using URL in

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.

Re: using URL in

Posted by Jean-Christophe Kermagoret <jc...@babelobjects.com>.
You can use sitemap global variables like this :

<map:pipelines>
        <map:component-configurations>
            <global-variables>
                <server>http://localhost:7001</repository>
            </global-variables>
        </map:component-configurations>

        <map:match pattern="*.pdf">
            <map:generate src="{server}/baseinfo/getxmldata" />
            <map:transform src="format/style/xsl/doc2pdf.xsl"/>
            <map:serialize type="fo2pdf" />
        </map:match>

HTH,
Jean-Christophe

Jeroen Reijn wrote:

> Hmm something went wrong with my mail client.
>
> It should be like this:
>
> <map:match pattern="*.pdf">
> <map:generate src="cocoon:/baseinfo/getxmldata" />
> <map:transform src="format/style/xsl/doc2pdf.xsl"/>
> <map:serialize type="fo2pdf" />
> </map:match>
>
> without the link.
>
>> 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
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


-- 

Jean-Christophe Kermagoret
jck@BabelObjects.Com




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


Re: using URL in

Posted by Jeroen Reijn <jr...@hippo.nl>.
Hmm something went wrong with my mail client.

It should be like this:

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

without the link.

> 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
>



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


Re: using URL in

Posted by Jeroen Reijn <jr...@hippo.nl>.
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