cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Holz <Ralph.H...@unique.com>
Subject Re: serving WML to Opera or Openwave SDK
Date Tue, 16 Apr 2002 16:22:17 GMT
Lajos,

>I've tested with both, without any problems. Can I see your sitemap entry?

Sure.

This is the sitemap for the WML version:

<?xml version="1.0" encoding="UTF-8"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">

<map:components>
         <map:generators default="file"/>
         <map:transformers default="xslt"/>
         <map:readers default="resource"/>
         <map:serializers default="wml"/>
         <map:selectors default="browser"/>
         <map:matchers default="wildcard"/>
</map:components>
         <map:pipelines>
                 <map:pipeline>
                         <map:match pattern="start.xml">
                                 <map:generate src="start.xml"/>
                                 <map:transform src="start-mobile.xsl"/>
                                 <map:serialize type="wml"/>
                         </map:match>

                         <map:match pattern="britain.xml">
                                 <map:generate src="start.xml"/>
                                 <map:transform src="categories-mobile.xsl">
                                         <map:parameter name="category" 
value="britain"/>
                                 </map:transform>
                                 <map:serialize type="wml"/>
                         </map:match>
                         <map:match pattern="*.xml">
                                 <map:generate src="{1}.xml"/>
                                 <map:transform src="doc-mobile.xsl"/>
                                 <map:serialize type="wml"/>
                         </map:match>
                         <map:match pattern="*.jpg">
                                 <map:read mime-type="image/jpeg" 
src="{1}.jpg"/>
                         </map:match>
                         <map:match pattern="*.gif">
                                 <map:read mime-type="image/gif" 
src="{1}.gif"/>
                         </map:match>
                 </map:pipeline>
         </map:pipelines>
</map:sitemap>

And this is the Cocoon sitemap entry:
...
         <map:pipelines>

                 <map:pipeline>
                         <map:match pattern="itb/**">
                                 <map:mount check-reload="yes" 
src="itb/sitemap-mobile.xmap" uri-prefix="itb" reload-method="synchron"/>
                         </map:match>
                 </map:pipeline>

</map:pipelines>


Thanks for help,
Ralph


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message