cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 許議中 <>
Subject How to read an input field of form in sitemap
Date Sun, 04 Feb 2007 08:00:03 GMT

I've a simple form

         <form action="type4-search" method="post">
           <select name="keyno">
           <xsl:for-each select="option">
               <xsl:attribute name="value"><xsl:value-of select="optionno"/></xsl:attribute>
               <xsl:value-of select="optionname"/>
           <input type="hidden" name="locale" value="$locale"/>
           <input type="hidden" name="username" value="$username"/>
           <input type="submit" name="submit" value="搜索"/>

how to get the local and username in type4-search sitemap like

			<map:match pattern="*-search">
				<map:generate src="itemtype/{1}search.xsp" type="serverpages">
          <map:parameter name="keyno" value="{request-param:keyno}"/>
				<map:transform src="itemtype/{1}search.xsl">
          <map:parameter name="locale" value="{request-param:locale}"/>
          <map:parameter name="username" value="{request-param:username}"/>
				<map:act type="locale">
					<map:transform type="i18n">						
						<map:parameter name="locale" value="{request-param:locale}"/>
				<map:serialize type="html"/>

here {request-param:locale} does not work.

Best Regards


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

View raw message