cocoon-users mailing list archives

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

I've a simple form

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

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:generate>
				<map:transform src="itemtype/{1}search.xsl">
          <map:parameter name="locale" value="{request-param:locale}"/>
          <map:parameter name="username" value="{request-param:username}"/>
        </map:transform>
				<map:act type="locale">
					<map:transform type="i18n">						
						<map:parameter name="locale" value="{request-param:locale}"/>
					</map:transform>
				</map:act>
				<map:serialize type="html"/>
			</map:match>

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

Best Regards

johnson


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message