Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 8704 invoked by uid 500); 6 Dec 2002 08:55:14 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 8631 invoked from network); 6 Dec 2002 08:55:05 -0000 Message-ID: From: Hong Gia Dinh To: cocoon-dev@xml.apache.org Subject: i18n and xmlform action Date: Fri, 6 Dec 2002 15:59:01 +0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C29D05.B854AEB0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C29D05.B854AEB0 Content-Type: text/plain Hi all i think i did stupid thing! i tried to apply i18n into my xmlforms but it can not understand the messages in the directory , it can not change into other language because in the link changing language (the bold lines), i am not sure and i dont know if i declare correctly the following : wizard?cocoon-action-start=true?locale=en English wizard?cocoon-action-start=true?locale=vi Vietnam in the sitemap i declare : (when i separate the form and i18n, they work separately very well but when i combine like this, it just do the form action not the i18n) can sb tell me what i did wrong? and how to correct? thanks a lot ------_=_NextPart_001_01C29D05.B854AEB0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable i18n and xmlform action

Hi all

i think i did stupid thing!
i tried to apply i18n into my = xmlforms
but it can not understand the = messages in the directory , it can = not change into other language

because in the link changing = language (the bold = lines), i am not sure and i dont = know if i declare correctly the following :

<menu>
        <lang>
        =         <href>wizard?cocoon-action-start=3Dtrue?locale=3D= en</href>
        =         <title>English</title>
        </lang>
        <lang>
        =         <href>wizard?cocoon-action-start=3Dtrue?locale=3Dvi<= FONT SIZE=3D2 FACE=3D"Arial"></href>
        =         <title>Vietnam</title>
        </lang>
</menu>

in the sitemap i declare :
(when i separate the form and i18n, = they work separately very well but when i combine like this, it just do = the form action not the i18n)



        =         =         <map:act type=3D"locale"> =        =20
        =         =         =         <map:match pattern=3D"*">
        =         =         =         =         <map:act type=3D"WizardAction">
        =         =         =         =         =         <map:parameter name=3D"xmlform-validator-schema-ns" value=3D"http://www.ascc.net/xml/schematron"/>

        =         =         =         =         =         <map:parameter name=3D"xmlform-validator-schema" value=3D"wizard/validate.xml"/>

        =         =         =         =         =         <map:parameter name=3D"xmlform-id" value=3D"form-feedback"/>
        =         =         =         =         =         <map:parameter name=3D"xmlform-scope" value=3D"session"/>
        =         =         =         =         =         <map:parameter name=3D"xmlform-model" value=3D"org.apache.cocoon.samples.xmlform.UserBean"/>

        =         =         =         =         =         <map:generate type=3D"serverpages" src=3D"wizard/{page}.xsp"/>
        =         =         =         =         =        =20
        =         =         =         =         =         <map:transform type=3D"i18n">
        =         =         =         =         =         =         <map:paramter name=3D"locale" value=3D"{../locale}"/>
        =         =         =         =         =         </map:transform>
        =         =         =         =         =         <map:transform type=3D"xmlform" label=3D"xml"/>
        =         =         =         =         =         <map:transform type=3D"xalan" src=3D"stylesheets/wizard2html.xsl">
        =         =         =         =         =         =         <map:parameter name=3D"use-request-parameters" value=3D"true"/>     =         =         =         =        

        =         =         =         =         =         =         <map:parameter type=3D"i18n" name=3D"locale" value=3D"{../locale}"/>
        =         =         =         =         =         =         <map:parameter name=3D"base-url" value=3D"/caseformwizard"/>      &nb= sp;         =         =         =         =         =        

        =         =         =         =         =         =         <map:paramter name=3D"page" value=3D"{1}"/>
        =         =         =         =         =         </map:transform>
        =         =         =         =         =         <map:transform src=3D"stylesheets/xmlform2html.xsl">
        =         =         =         =         =         =         <map:parameter name=3D"use-request-parameters" value=3D"true"/>     =         =         =         =        

        =         =         =         =         =         =         <map:parameter name=3D"locale" value=3D"{../locale}"/>
        =         =         =         =         =         =         <map:parameter name=3D"base-url" value=3D"/caseformwizard"/>      &nb= sp;         =         =         =         =         =         =         =         =         =        

        =         =         =         =         =         =         <map:parameter name=3D"page" value=3D"{1}"/>
        =         =         =         =         =         </map:transform>
        =         =         =         =         =         <map:serialize type=3D"html" label=3D"debug"/>
        =         =         =         =         </map:act>
        =         =         =         </map:match>
        =         =         </map:act>





can sb tell me what i did wrong? and = how to correct? thanks a lot

------_=_NextPart_001_01C29D05.B854AEB0--