cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Christophe Kermagoret <...@babelobjects.com>
Subject Re: using URL in <map:match>
Date Wed, 10 Mar 2004 04:58:05 GMT
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


Mime
View raw message