Shouldn't your xsl contain curly braces?

<input type="hidden" name="locale" value="{$locale}"/>
           <input type="hidden" name="username" value="{$username}"/>

-----Original Message-----
From:   ??? [mailto:[EMAIL PROTECTED]
Sent:   Sun 2/4/2007 9:00 AM
To:     cocoon-users
Cc:     
Subject:        How to read an input field of form in sitemap

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to