cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bv Cc" <>
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"
   <map:serializer name="html-utf" mime-type="text/html"
   <map:serializer name="html-jp" mime-type="text/html"

and resource as

   <map:resource name="content-transform">
   <map:transform src="xsl/contlang.xsl">
    <map:parameter name="choslang" value="{pagelang}"/>
   <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:serialize type="{pagelang}"/>

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message