cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kirchhoff, Lars" <>
Subject xmlform and i18n translation
Date Thu, 02 Jan 2003 06:16:06 GMT

I want to have a separate error page, where I can 
display different error messages. These error 
messages are generated from methods in the bean 
and they should be translated. Therefor I setup 
a error.xml which holds only a <xf:output> element 
which should display the error.

So far I could get it, because either the <i18n:text> 
or the <xf:output> element isn't translated correctly, 
when I tried to position the i18n action within the 
sitemap. With this I actually get the translation, 
but the <xf:output> element isn't transformed 

----- code -------------------------
     <map:act type="test"> 
        <map:parameter name="xmlform-id"    value="printInv"/>       
        <map:parameter name="xmlform-scope" value="session"/>      
        <map:parameter name="xmlform-model" value="test.UserBean"/>
        <map:generate 	src="forms/{page}.xml" /> 	                
        <map:transform type="xmlform" label="xml"/>   

        <map:select type="parameter">
          <map:parameter name="parameter-selector-test" value="{page}" />
          <map:when test="print">
            <map:call resource="format-transformation">
              <map:parameter name="format" value="{format}" />
            <map:transform src="stylesheets/wizard2html.xsl" />   
            <map:transform src="stylesheets/xmlform2html.xsl" /> 
            <map:act type="locale">	
              <map:transform type="i18n">
                <map:parameter name="locale" value="{locale}"/>
            <map:serialize type="html" label="debug"/>  
----- /code -------------------------

Has somebody an idea how to solve this, because 
I need it for another form as well. I would like 
to use the same form (input.xml) for adding and 
editing purpose and would like to setup the title 
of the page within the action.


ciao Lars

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