cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hong Gia Dinh <hgd...@sdcgrp.com>
Subject i18n and xmlform action
Date Fri, 06 Dec 2002 08:59:01 GMT
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=true?locale=en</href>
		<title>English</title>
	</lang>
	<lang>
		<href>wizard?cocoon-action-start=true?locale=vi</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="locale">		
				<map:match pattern="*">
					<map:act type="WizardAction">
						<map:parameter
name="xmlform-validator-schema-ns"
value="http://www.ascc.net/xml/schematron"/>
						<map:parameter
name="xmlform-validator-schema" value="wizard/validate.xml"/>
						<map:parameter
name="xmlform-id" value="form-feedback"/>
						<map:parameter
name="xmlform-scope" value="session"/>
						<map:parameter
name="xmlform-model" value="org.apache.cocoon.samples.xmlform.UserBean"/>
						<map:generate
type="serverpages" src="wizard/{page}.xsp"/>
						
						<map:transform type="i18n">
							<map:paramter
name="locale" value="{../locale}"/>
						</map:transform>
						<map:transform
type="xmlform" label="xml"/>
						<map:transform type="xalan"
src="stylesheets/wizard2html.xsl">
							<map:parameter
name="use-request-parameters" value="true"/>

							<map:parameter
type="i18n" name="locale" value="{../locale}"/>
							<map:parameter
name="base-url" value="/caseformwizard"/>

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

							<map:parameter
name="locale" value="{../locale}"/>
							<map:parameter
name="base-url" value="/caseformwizard"/>

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





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


Mime
View raw message