cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Scott" <alex.sc...@nexusalpha.com>
Subject Authentification Framework problem
Date Wed, 27 Aug 2003 16:10:20 GMT
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="{@target}">
      <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="{@type}" name="{@name}" 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message