Hi, your test in the stylesheet looks a little bit strange to me:
> <xsl:if (test="normalize-space(name) = $name" and > test="normalize-space(password) = $password")> I think it should read <xsl:if test="normalize-space(name) = $name and normalize-space(password) = $password"> HTH Carsten > -----Original Message----- > From: Alex Scott [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 27, 2003 6:10 PM > To: [EMAIL PROTECTED] > Subject: Authentification Framework problem > > > XMLS > ---- > > LOGIN.XML > > <input type="text" name="username"/> > <input type="password" name="password"/> <!-- Added this field > for password --> > > USERLIST.XML > > <user> > <name>cocoon</name> > password>123456</password> <!-- Added > password node--> > </user> > > ...These are the changes which I made to the scripts:- > > > XSLS > ---- > AUTHENTICATE.XSL > > > <xsl:param name="name"/> > <xsl:param name="password"/> <!-- Added password parameter--> > > <!-- and added test for password--> > > <xsl:if (test="normalize-space(name) = $name" and > test="normalize-space(password) = $password")> > > SIMPLE_PAGE2HTML.XSL > > <!-- Added a template so as to get both field entries--> > > <xsl:template match="form"> > <form method="get" action="[EMAIL PROTECTED]"> > <xsl:apply-templates/> > </form> > </xsl:template> > > <xsl:template match="input"> > <center> > <xsl:apply-templates select="input"/> > </center><br/> > </xsl:template> > > <xsl:template match="input"> > <input type="[EMAIL PROTECTED]" name="[EMAIL PROTECTED]" value="{.}"/> > > </xsl:template> > > SITEMAP > > <!-- Added a request parameter for the password--> > <map:parameter name="parameter_name" > value="{request-param:username}"/> > <map:parameter name="parameter_password" > value="{request-param:password}"/> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
