cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bv Cc" <bvcoc...@hotmail.com>
Subject Can serializer recognize parameter in resource?
Date Thu, 14 Nov 2002 01:01:30 GMT
I hope serializers can do different encoding output for different language
document with using same transformers.

I defined a resource for using same transformers group transforming
different language pages. I also defined different serializers for each
enconding output. I wish serializer in resource could recognize parameters
for different "type"s , but it seems not work. How can I accomplish it.

Some sitemap.xmap code clip as below
   <map:serializer name="html" mime-type="text/html"
src="org.apache.cocoon.serialization.HTMLSerializer">
    <encoding>ISO-8859-1</encoding>
   </map:serializer>
   <map:serializer name="html-utf" mime-type="text/html"
src="org.apache.cocoon.serialization.HTMLSerializer">
    <encoding>UTF-8</encoding>
   </map:serializer>
   <map:serializer name="html-jp" mime-type="text/html"
src="org.apache.cocoon.serialization.HTMLSerializer">
    <encoding>Shift-JIS</encoding>
   </map:serializer>

and resource as

 <map:resources>
   <map:resource name="content-transform">
   <map:transform src="xsl/contlang.xsl">
    <map:parameter name="choslang" value="{pagelang}"/>
   </map:transform>
   <map:transform src="xsl/content.xsl"/>
   <map:transform src="xsl/home.xsl">
    <map:parameter name="gate-file" value="../Statics/gate.xml"/>
    <map:parameter name="menu-file" value="../docs/{gatepage}/title.xml"/>
    <map:parameter name="memo-file" value="../Statics/memo.xml"/>
    <map:parameter name="gatename" value="{gatepage}"/>
    <map:parameter name="titlename" value="{titlepage}"/>
    <map:parameter name="choslang" value="{pagelang}"/>
   </map:transform>
   <map:serialize type="{pagelang}"/>
   </map:resource>
 </map:resources>



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


Mime
View raw message