You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "ZM_Main@tut.by" <ZM...@tut.by> on 2001/09/27 19:44:05 UTC

C2 + Tomcat 3.2.3 international xsl:parameter

sitemap fragment:

request:
http://localhost:8080/cocoon/books/books.html?parameter=%E9%F6%F3%EA%E5%ED


when I use in xsl file
<xsl:value-of select="$parameter"/>

result next:
&eacute;&ouml;&oacute;&ecirc;&aring;&iacute;


Can I get next result:
йцукен (in Windows-1251 codepage)
or (&#1081;&#1094;&#1091;&#1082;&#1077;&#1085;)

-------------------------------------------------------------------------------------
sitemap .xmap fragment:
  <map:transformers default="xslt">
   <map:transformer     name="xslt"      src="org.apache.cocoon.transformation.TraxTransformer"
                        pool-max="32" pool-min="16" pool-grow="4">
    <use-request-parameters>true</use-request-parameters>
    <use-browser-capabilities-db>false</use-browser-capabilities-db>
   </map:transformer>
...............
   <map:serializer name="html"   mime-type="text/html"        src="org.apache.cocoon.serialization.HTMLSerializer">
     <encoding>Windows-1251</encoding>
   </map:serializer>
..............

   <map:match pattern="books/*.html">
    <map:generate src="books/{1}.xml"/>
    <map:transform src="books/{1}.xsl"/>
    <map:serialize type="html"/>
   </map:match>



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


Re: C2 + Tomcat 3.2.3 international xsl:parameter

Posted by Udi Weinsberg <ud...@tochna.technion.ac.il>.
I see that many of us have a similar problem. The input path of the C2
causes translation of the parameter to some other format (UTF-8??) and
somewhere along the path, our data gets scrambled.

I guess we should address this problem to the developemnt group, and see
if they have an idea.

Let me know if you succeed in making your 'simple' task of maintaining the
parameter characters encoding.

Udi.


On Thu, 27 Sep 2001, ZM_Main@tut.by wrote:

> sitemap fragment:
>
> request:
> http://localhost:8080/cocoon/books/books.html?parameter=%E9%F6%F3%EA%E5%ED
>
>
> when I use in xsl file
> <xsl:value-of select="$parameter"/>
>
> result next:
> &eacute;&ouml;&oacute;&ecirc;&aring;&iacute;
>
>
> Can I get next result:
> ������ (in Windows-1251 codepage)
> or (&#1081;&#1094;&#1091;&#1082;&#1077;&#1085;)
>
> -------------------------------------------------------------------------------------
> sitemap .xmap fragment:
> <map:transformers default="xslt">
>  <map:transformer   name="xslt"      src="org.apache.cocoon.transformation.TraxTransformer"
>                       pool-max="32" pool-min="16" pool-grow="4">
>   <use-request-parameters>true</use-request-parameters>
>   <use-browser-capabilities-db>false</use-browser-capabilities-db>
>  </map:transformer>
> ...............
>  <map:serializer name="html"   mime-type="text/html"        src="org.apache.cocoon.serialization.HTMLSerializer">
>    <encoding>Windows-1251</encoding>
>  </map:serializer>
> ..............
>
>  <map:match pattern="books/*.html">
>   <map:generate src="books/{1}.xml"/>
>   <map:transform src="books/{1}.xsl"/>
>   <map:serialize type="html"/>
>  </map:match>
>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>


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