Yes, it right but it's not theonly error I made in the code. I modify the sitemap but I don't login. Probably depends from the authenticate.xls.
Thanks

On 09/giu/05, at 17:29, [EMAIL PROTECTED] wrote:

Like this
     <map:pipeline internal-only="true">
       <map:match pattern="authenticate">
         <map:generate src="userSql.xml"/>
          <map:transform type="sql">
             <map:parameter name="use-connection" value="mdgDB"/>
             <map:parameter name="show-nr-of-rows" value="true"/>
             <map:parameter name="clob-encoding" value="UTF-8"/>
             <map:parameter name="parameter_name"
value="{request-param:parameter_name}"/>
             <map:parameter name="parameter_passwd"
value="{request-param:parameter_passwd}"/>
           <map:parameter name="use-request-parameters"
value="true"/>
        </map:transform>
         <map:transform src="stylesheets/authenticate.xsl">
           <map:parameter name="use-request-parameters" value="true"/>
         </map:transform>
         <map:serialize type="xml"/>
       </map:match>
     </map:pipeline>

authenticate.xsl

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform";

<xsl:param name="ut_login"/>
<xsl:param name="ut_psw"/>

<xsl:template match="authentication">
  <authentication>
    <xsl:apply-templates select="rowset"/>
  </authentication>
</xsl:template>

<xsl:template match="row">
    <!-- Compare the name of the user -->
    <xsl:if test="normalize-space(ut_login) = $ut_login">
        <xsl:if test="normalize-space(ut_psw) = $ut_psw">
            <ID><xsl:value-of select="name"/></ID>
        </xsl:if>
    </xsl:if>
</xsl:template>

</xsl:stylesheet>

:-)Franco


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

Reply via email to